xdg-desktop-portal-gtk was indeed installed with gnome:

~$ grep " install " /var/log/dpkg.log | grep xdg
2023-11-04 13:01:03 install xdg-desktop-portal:amd64 1.14.4-1ubuntu2~22.04.1 
1.14.4-1ubuntu2~22.04.1
2023-11-04 13:01:08 install xdg-desktop-portal-gtk:amd64 <none> 1.14.0-1build1
2023-11-04 13:01:08 install xdg-desktop-portal-gnome:amd64 <none> 42.1-0ubuntu1

And after removing the xdg-desktop-portal-gtk package the file access in
firefox stopped working again. There was no warning that firefox
depencies will be broken upon removal of the xdg package, so xdg seems
to be missing from the firefox depencies, wich is confirmed by the
package manager:

~$ apt-cache depends firefox | grep xdg
~$ 

So either just the xdg missing in the depency list of firefox, or,
worse, if snap manages dependencies independently, it fails to keep
dependencies consistent whenever there is an attempt to update or remove
them via the package manager.

-- 
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