Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Saving the page or a downloaded file does not work

  • 3 trả lời
  • 0 gặp vấn đề này
  • 51 lượt xem
  • Trả lời mới nhất được viết bởi Darrell

more options

If I try to save the current page, by selecting Save Page As from the File menu or the right-click pop-up menu, nothing happens. Similarly, in a tab displaying a downloaded PDF, clicking on the folder icon that should save a copy of the file does nothing. No error indication that I can find, but the Save dialogue does not appear. The same operations work as expected in Chrome, so it doesn't appear to be a general problem with my system.

I really don't want to switch to Chrome as my primary browser, but not being able to save PDFs is a show stopper for me.

If I try to save the current page, by selecting Save Page As from the File menu or the right-click pop-up menu, nothing happens. Similarly, in a tab displaying a downloaded PDF, clicking on the folder icon that should save a copy of the file does nothing. No error indication that I can find, but the Save dialogue does not appear. The same operations work as expected in Chrome, so it doesn't appear to be a general problem with my system. I really don't want to switch to Chrome as my primary browser, but not being able to save PDFs is a show stopper for me.

Giải pháp được chọn

I never found an actual solution to this problem; I tried purging and reinstalling the xdg-desktop-portal packages, and that didn't help. However, based on a hint I ran across in my searches, I removed the Ubuntu Firefox snap package and instead installed the deb version, and now Firefox can save files again.

The problem may have been caused by the way I've handled system upgrades over the years. As part of preserving the ability to boot back into the previous OS version, I've kept most of my user data on a separate partition, and a lot of the subdirectories in my home directory are symbolic links to that second partition. That included my preferred Firefox profile, and I suspect the problem originated with limitations on the snap package accessing files on a different partition.

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (3)

more options

Additional information: I tried starting Firefox from a terminal window, and when I click on Save Page As I get the following message:

Gtk-WARNING **: 20:52:50.462: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Child process exited with code 2

The presence of "file chooser" in this warning is very suggestive, but I have no idea what to do with it.

more options

On Linux this can be an issue with "xdg-desktop-portal" and you may have to install some packages like xdg-desktop-portal and xdg-desktop-portal-gtk. Whether to use gtk portal for the file picker. 0:never 1:always 2:auto (true for flatpak or GTK_USE_PORTAL=1, false otherwise)

more options

Giải pháp được chọn

I never found an actual solution to this problem; I tried purging and reinstalling the xdg-desktop-portal packages, and that didn't help. However, based on a hint I ran across in my searches, I removed the Ubuntu Firefox snap package and instead installed the deb version, and now Firefox can save files again.

The problem may have been caused by the way I've handled system upgrades over the years. As part of preserving the ability to boot back into the previous OS version, I've kept most of my user data on a separate partition, and a lot of the subdirectories in my home directory are symbolic links to that second partition. That included my preferred Firefox profile, and I suspect the problem originated with limitations on the snap package accessing files on a different partition.