"firefox --version" problem when run via snap

Bug #1959845 reported by Paul Eggert
6
This bug affects 1 person
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/.bashrc: Permission denied
Mozilla Firefox 96.0.3
$ ls -l $HOME/.bashrc
-r--r--r-- 1 eggert eggert 420 Apr 25 2002 /home/eggert/.bashrc
$ env | grep en_US.utf8
LC_ALL=en_US.utf8
$ locale
LANG=C
LANGUAGE=
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
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/912/usr/lib/firefox/firefox works fine:

$ /snap/firefox/912/usr/lib/firefox/firefox --version
Mozilla Firefox 96.0.3

Revision history for this message
Ian Johnson (anonymouse67) wrote :

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

Changed in snapd (Ubuntu):
status: New → Invalid
Revision history for this message
Paul Eggert (eggert-cs) wrote :

I filed a bug with Mozilla upstream, here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1753320

and they said, quite reasonably, that since I'm seeing similar issues with Chromium that it's not a Firefox bug. I therefore followed up by filing Bug #1982401 and Bug #1983399 on bugs.launchpad.net.

Revision history for this message
Paul Eggert (eggert-cs) wrote :

A response to Bug #1983399 suggested that I file a bug report upstream as well, to snapd-desktop-integration, so I've done that here:

https://github.com/snapcore/snapd-desktop-integration/issues/22

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.