Closed Bug 1764700 Opened 3 years ago Closed 2 years ago

[flatpak] Save Page As... works unreliably

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1664887

People

(Reporter: jhorak, Assigned: jhorak)

References

(Blocks 1 open bug)

Details

The Save page as... does not work correctly in flatpak, the files are not saved.

Blocks: flatpak

The problem is with the flatpak restrictions:

  1. portal allows access only to the selected file in the filepicker and not the whole folder.
  2. since Firefox allows saving whole page where the data files are stored to the _files subdir, the dowload will fail when Web page, complete is selected from filetypes due to unable to write the data.

Currently I don't see a way to reliably save the whole page under flatpak environment. If we could get the list of files to be downloaded before showing filechooser dialog at least we could pass the list of the files to the portal by using SaveFiles [1], but it rather shows the folder select dialog - the filename is fixed and also disallow users to set if they want to save whole page, or just html or text file. I'm going to fill a bugreport on the portal implementation if they can have any hints for us.

[1] https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-method-org-freedesktop-portal-FileChooser.SaveFiles

There's an open issue with discussion on the idea of extending things to allow an "...and adjacent files" permission.

There seems to be already opened issue regarding this: https://github.com/flatpak/xdg-desktop-portal/issues/463

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.