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? ** Changed in: firefox (Ubuntu) Status: New => Confirmed ** Tags added: snap ** Changed in: firefox (Ubuntu) Importance: Undecided => Medium ** Summary changed: - firefox unable to open files from file-roller + firefox snap unable to open files from file-roller ** Also affects: file-roller (Ubuntu) Importance: Undecided Status: New ** Changed in: file-roller (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/1968548 Title: firefox snap unable to open files from file-roller Status in file-roller package in Ubuntu: Confirmed Status in firefox package in Ubuntu: Confirmed 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/.$randomname/file.html and tells (through xdg-open? Dunno...) firefox to open it. Expected result: Firefox shows file Actual result: "Firefox says: Access to the file was denied The file at [$HOME]/.cache/.fr-KMCDMo/file.html is not readable. 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. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/file-roller/+bug/1968548/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp