Ubuntu: Firefox: open downloaded files with system default application



Question:

When I download a file with firefox, it always asks me with what program I want to open it with, even when that type of file is recognized by the system, and I can double click on it in Nautilus and have it open properly.

This is an example with a deb file, which opens with Ubuntu Software center (as it should) when I double click on it in Nautilus.

enter image description here

I do not want to look for the required program in /usr/bin or whatever in the Firefox dialog, I want Firefox to recognize my system preferences. What I resort to doing now is choose "Download", open Nautilus and double click on the file...

Why can't Firefox recognize my system settings, and how do I get it to?

Thanks!


Solution:1

Use /usr/bin/xdg-open (it's part of xdg-utils package) to open all the files.


Solution:2

I can provide some perspective on why Firefox isn't more tightly integrated into Ubuntu. Applications like Firefox and OpenOffice/Libreoffice are designed to work on a wide variety of operating environments including various Linux distributions, Desktop environments, Windows OS, Apple OS and many others. All of those environments are moving targets. For example Gnome has gone to GTK 3.0 but not every application in the latest Ubuntu release has upgraded from GTK 2.0 and of course let's not forget Unity has entered the fray. To that end Firefox and their ilk loosely couple with operating environments so that development can focus on the core features of the application. Being all things to all people or for applications in this case all environments can be destructive to core goals. Clearly tight integration is conceivable and desirable from an individual user's perspective. It's a matter of priorities and complexity. The desirability of regular concurrent releases for all environments is also a factor.


Solution:3

You should go to Edit â–¸ Preferences â–¸ Applications and decide what Firefox should do with every kind of files available. You can choose it to open with a certain application or to ask what to do.

That's the easiest, one click-way of doing it. Or you can use the dialog that appears (an that you have showed here), choose an application to open it and enable Do this automatically for files like this from now on. Next time you open one of these files it won't ask you again.

But I recommend the first solution.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »