11

using a fresh ubuntu 22.04 install i can no longer save or download any files in firefox. it did work when i first installed firefox, now it no longer does.

File -> Save page as

does not even open a window where i could select a destination directory.

using the "save as" button in the pdf viewer also does nothing at all.

i just started firefox in safe mode

$ firefox --safe-mode

and saw the error message

(firefox:9161): Gtk-WARNING **: 09:19:12.367: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files

this (probably) goes for all snap applications. for me it was

  • firefox
  • keepassxc

i might have uninstalled fuse3 and xdg-desktop-portal when i installed fuse. see this question.

2 Answers2

19

oh, after some more investigation i found out i had to install

$ sudo apt install xdg-desktop-portal xdg-desktop-portal-gtk

and everything worked again.

as mentioned in the comments: you may have to reboot after installing the packages.

0

I already had the two packages installed, so I had to

sudo dpkg --purge --force depends xdg-desktop-portal xdg-desktop-portal-gtk
sudo apt install xdg-desktop-portal xdg-desktop-portal-gtk

Afterwards, it works. Let's see if it still works after reboot.

Also see https://bugzilla.mozilla.org/show_bug.cgi?id=1851104