Default applications

Revision as of 00:43, March 4, 2015 by Spectromas (Talk | contribs) (Created page with "== Set the default browser == You can use the following commands to set your default browser for links and .html files, replacing '''browser.desktop''' with your preferred br...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Set the default browser

You can use the following commands to set your default browser for links and .html files, replacing browser.desktop with your preferred browser e.g. firefox-bin.desktop (desktop files are often located in /usr/share/applications in case you need to check the exact name):

# xdg-mime default browser.desktop x-scheme-handler/http
# xdg-mime default browser.desktop x-scheme-handler/https
# xdg-mime default browser.desktop text/html

You can also set the default browser globally:

# xdg-settings set default-web-browser browser.desktop

Once these have been set you can test it with:

# xdg-open http://www.funtoo.org

If you just run a window manager then xdg-mime or xdg-settings may complain that a DE has not been set or recognized. Set it (or fake it) with export DE="xfce" in ~/.xinitrc or ~/.bashrc