Sadly saving files to my home directory or $HOME/Downloads does not work
at all, because firefox does not even open the corresponding context
menus. All actions where firefox seems to have to read, write or execute
files are not working:

Right click on page -> Save page as -> Nothing happens, i.e. context menu for 
saving action does not open
Right click on image -> Save image as -> Nothing happens
Print -> Save as PDF -> Save -> Nothing happens
Open page with zoom invitation -> Left click on "Launch meeting" -> Nothing 
happens
Open drive.google.com -> New -> File upload -> Nothing happens
Uploads to other pages do not work either

However what opening href links to PDF files which are directly
downloaded to $HOME/Downloads and then displayed with the build in
viewer works fine. So I guess that not the file access per se, but some
dbus action for opening the context menu is blocked by apparmor. This is
also the dmesg excerpt suggest, which I attached when filing the report.

For the time being, running firefox outside the snap confinement works
just fine for me.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/2042543

Title:
  Firefox-snap cannot save files or launch apps due to faulty apparmor
  configuration

Status in firefox package in Ubuntu:
  Incomplete

Bug description:
  Since a recent update, firefox cannot any more save pages, images or
  download files. It also cannot launch other processes like zoom via
  meeting links. This seems to be caused by a faulty apparmor
  configuration and a common problem since the introduction of the snap
  package, e.g. c.f. https://arstechnica.com/civis/threads/snap-based-
  firefox-is-a-terrible-experience.1487499 or
  https://ubuntuforums.org/showthread.php?t=2476758 . However, none of
  the proposed workarounds works for me, neither editing apparmor
  configuration files, reinstalling firefox, or refreshing it via Help
  -> More troubleshoot information -> Refresh firefox.

  Finally, I found that snap installs two binaries, one in
  /usr/bin/firefox and one in
  /snap/firefox/3252/usr/lib/firefox/firefox. If I start firefox from
  cli with typing firefox, the first one is invoked, which is broken. If
  I explicitly invoke /snap/firefox/3252/usr/lib/firefox/firefox, saving
  works fine. So I just aliased the second binary to firefox in the
  .bashrc. This binary also strangely seems to use its own
  configuration, i.e. own apps, password storage, etc. I hope this
  information helps other users with the same problem and the package
  maintainers with fixing the configuration.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: firefox 1:1snap1-0ubuntu2
  ProcVersionSignature: Ubuntu 5.15.0-88.98-generic 5.15.126
  Uname: Linux 5.15.0-88-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Thu Nov  2 10:03:30 2023
  InstallationDate: Installed on 2015-11-05 (2918 days ago)
  InstallationMedia: Ubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
  Snap.Changes: no changes found
  SourcePackage: firefox
  UpgradeStatus: Upgraded to jammy on 2022-10-30 (367 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/2042543/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to