Due to a typo the variable entries can be referenced before it is assigned, causing the error.
This only happens if the directory ~/.mozilla/firefox does not exist. For example when Firefox is installed as Snap, where the actual path is ~/snap/firefox/common/.mozilla/firefox.
Due to a typo the variable
entries
can be referenced before it is assigned, causing the error.This only happens if the directory
~/.mozilla/firefox
does not exist. For example when Firefox is installed as Snap, where the actual path is~/snap/firefox/common/.mozilla/firefox
.This was tested on Ubuntu 22.04.1 LTS.
Best regards!