desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Zen browser does not save a web page

Open BeatlesNo1 opened this issue 1 year ago • 1 comments

Captchas

  • [x] I have read the instructions.
  • [x] I have searched existing issues and avoided creating duplicates.
  • [x] I am not filing an enhancement request.
  • [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • [x] I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

I press CTRL+S and Save menu opens. When I click Save, dialog closes. But when I open my file manager (Thunar), there is no html file saved. Tested it with Floorp and it works on Floorp. I use Arch based CachyOS with Hyprland. Zen Browser version is 1.11.1b.

Version

1.11.1b

What platform are you seeing the problem on?

Linux (Flatpak)

What component is this issue related to?

Performance

Relevant log output if applicable


BeatlesNo1 avatar Apr 12 '25 15:04 BeatlesNo1

@BeatlesNo1 I've rolled back to version 1.11.1b and launched the browser through flatpak and I was able to save a webpage to the ~/Downloads directory.

However, I was unable to save the complete webpage in any other directory, the results are the same with Firefox, it's most likely Flatpak/Firefox related. This is not the case when running the browser on the same version downloaded through yay (aur helper). Here's the error message received when saving a webpage:

/run/user/1000/doc/b3cce20c/Github.html could not be saved, because you cannot change the contents of that folder.

Change the folder properties and try again, or try saving in a different location.

The issue was discussed by Mozilla too, which is tracked here on Bugzilla: #1342563, #1769958 and #1774342

It looks like Flatpak feature, which runs the app in a sandboxed environment that keeps it isolated from the system, so the browser doesn't have the permission to write anywhere else besides the ~/Downloads directory.

If you really want to save the webpage elsewhere, you can give the proper permissions by running the following command:

sudo flatpak override app.zen_browser.zen --filesystem=xdg-desktop --filesystem=xdg-documents --filesystem=xdg-download --filesystem=xdg-music --filesystem=xdg-pictures --filesystem=xdg-videos

That should allow you to save webpages to some of the directories in ~/ home, like ~/Desktop, ~/Documents, ~/Download, ~/Music, ~/Pictures and ~/Videos. More information about the --filesystem option could be found in the Flatpak docs.

0Ky avatar Apr 12 '25 18:04 0Ky