no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | change_default_download_action_in_firefox_to_gnome-open [22.01.2015 11:03] (current) – created Pascal Suter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Change the default download action in firefox to gnome-open ====== | ||
+ | when a file is downloaded off the internet, most of the time the webserver announces it as an unknown binary file to be downloaded by passing the Content-Type header for " | ||
+ | |||
+ | instead it would be much nicer to have it open these files with gnome-open since this is the program that determins how a file is opened when you double click it in gnome. In other words, once you tell firefox to open octetstream files with gnome-open you will only have to choose in one place how to open a zip or a pdf and it will be opened the same way in your os or from your browser. sounds good doesn' | ||
+ | |||
+ | so here is how to achieve that: | ||
+ | |||
+ | ===== Perpare a .desktop file for gnome-open ===== | ||
+ | check your ~/ | ||
+ | grep gnome-open ~/ | ||
+ | if you don't find a .desktop file, create one (like gnome-open.desktop) in that folder with the following content: | ||
+ | < | ||
+ | [Desktop Entry] | ||
+ | Encoding=UTF-8 | ||
+ | Version=1.0 | ||
+ | Type=Application | ||
+ | Exec=gnome-open %f | ||
+ | Name=gnome-open | ||
+ | Comment=Custom definition for gnome-open | ||
+ | NoDisplay=true | ||
+ | </ | ||
+ | |||
+ | ===== set the default app for application-octetstream ===== | ||
+ | unfortunately firefox doesn' | ||
+ | nano ~/ | ||
+ | now search for | ||
+ | application/ | ||
+ | and set it to gnome-open.desktop like this: | ||
+ | application/ | ||
+ | do this for all occurrences of octet-stream and if you don't find any, add it under the '' | ||