Closed Bug 1721293 Opened 3 years ago Closed 3 years ago

firefox saves temporary downloads to a location sandboxed snap and flatpaks can't use

Categories

(Core :: Widget: Gtk, enhancement)

Firefox 91
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1710933

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?

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.