firefox saves temporary downloads to a location sandboxed snap and flatpaks can't use
Categories
(Core :: Widget: Gtk, enhancement)
Tracking
()
People
(Reporter: tim, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
Configure a certain file type to open with an application, and have that app installed on Ubuntu as a snap. Example: configure .deb files to open the the app Software. In Ubuntu, Software is a default app, and it is a snap. It is designed to handle .deb files.
snap apps can not access /tmp due to sandboxing.
Now, download a .deb. After clicking the link, Firefox will propose that you open it in Software, which makes sense. And this the problem occurs.
Actual results:
It fails because the .deb is downloaded to /tmp which is a forbidden location for sandboxed desktop apps (I don't know why, but it is a reality of the modern Linux desktop).
Expected results:
The problem also happens with flatpaks. For example, LibreOffice. Allowing the sandboxed apps to see /tmp is not going to happen.
The location of temporary downloads in Firefox should be configurable. I tried launching firefox with
env TMPDIR=/home/tim/tmp_firefox firefox
but this made no difference.
This is a right nuisance since Firefox is the default browser on Ubuntu, and Software is the default software app. I am not sure if this is a defect or an enhancement report.
Why is firefox ignoring TMPDIR in the environment?
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Reporter | ||
Comment 2•2 years ago
|
||
this is a dup of https://bugzilla.mozilla.org/show_bug.cgi?id=1710933
Updated•2 years ago
|
Description
•