"firefox --version" problem when run via snap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This is Ubuntu 21.10 on x86-64. The "firefox" command is /snap/bin/firefox, which is a symlink to /usr/bin/snap. I am running snapd 2.53+21.10ubuntu1.
When I run the shell command "firefox --version", and attempt to debug the resulting mess a bit, I see the following:
$ firefox --version
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
/bin/bash: /home/eggert/
Mozilla Firefox 96.0.3
$ ls -l $HOME/.bashrc
-r--r--r-- 1 eggert eggert 420 Apr 25 2002 /home/eggert/
$ env | grep en_US.utf8
LC_ALL=en_US.utf8
$ locale
LANG=C
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=en_US.utf8
As you can see, I do have a .bashrc file. This file is not executable and it shouldn't be executable as it's not intended to be a standalone command. It has worked just fine for decades, when I log in via Bash or run Bash in the usual way.
For what it's worth, the command /snap/firefox/
$ /snap/firefox/
Mozilla Firefox 96.0.3
Hi, this is a bug with the snap packaging of Firefox, not with snapd. Please file a bug with Mozilla upstream at https:/ /bugzilla. mozilla. org/home