firefox snap unable to open files from file-roller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
In Progress
|
Undecided
|
Unassigned | ||
file-roller (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
firefox (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Due to Firefox Snap being contained and not being able to read in ~/.cache/, html-files from an archive cannot be read with Firefox. Ubuntu 22.04 Jammy Jellyfish
Steps to reproduce:
- open, with file-roller, an archive containing a HTML-file;
- double click (i.e. open) the archived HTML-file (with file-roller)
Now file-roller extracts this to ~/.cache/
Expected result: Firefox shows file
Actual result: "Firefox says: Access to the file was denied
The file at [$HOME]
It may have been removed, moved, or file permissions may be preventing access."
This is basically a different manifestation of bug #1959417 but I'm filing it separately because it is a separate problem.
tags: | added: jammy |
Changed in snapd: | |
assignee: | Olivier Tilloy (osomon) → nobody |
Indeed, by default file-roller will temporarily unpack files in the user's cache folder (it can in some cases fall back to the user's home directory, or a temporary directory, see https:/ /gitlab. gnome.org/ GNOME/file- roller/ -/blob/ master/ src/file- utils.c# L55).
Given this, I wonder whether it would be acceptable to allow firefox (and other browser snaps) to read files under @{HOME} /.cache/ fr-*/, by amending an existing snapd interface.
Or could file-roller be patched to use the OpenFile method of the FileChooser portal (https:/ /flatpak. github. io/xdg- desktop- portal/ #gdbus- method- org-freedesktop -portal- FileChooser. OpenFile)? Would you mind filing a file-roller bug at https:/ /gitlab. gnome.org/ GNOME/file- roller/ -/issues to request this, and link back to it here?