Public bug reported: 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 ** Affects: snapd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1959845 Title: "firefox --version" problem when run via snap To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1959845/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs