Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Default applications"
Jump to navigation
Jump to search
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...") |
Threesixes (talk | contribs) m (add query existing mime default) |
||
Line 1: | Line 1: | ||
== Set the default browser == | == Set the default browser == | ||
To show the default http browser: | |||
{{console|body=###i## xdg-mime query default x-scheme-handler/http}} | |||
To show the default https browser: | |||
{{console|body=###i## xdg-mime query default x-scheme-handler/https}} | |||
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): | 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): | ||
{{console|body=###i## xdg-mime default browser.desktop x-scheme-handler/http}} | |||
{{console|body=###i## xdg-mime default browser.desktop x-scheme-handler/https}} | |||
{{console|body=###i## xdg-mime default browser.desktop text/html}} | |||
You can also set the default browser globally: | You can also set the default browser globally: | ||
{{console|body=###i## xdg-settings set default-web-browser browser.desktop}} | |||
Once these have been set you can test it with: | Once these have been set you can test it with: | ||
{{console|body=###i## 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 | 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 |
Latest revision as of 18:35, June 18, 2015
Set the default browser
To show the default http browser:
root # xdg-mime query default x-scheme-handler/http
To show the default https browser:
root # xdg-mime query default x-scheme-handler/https
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):
root # xdg-mime default browser.desktop x-scheme-handler/http
root # xdg-mime default browser.desktop x-scheme-handler/https
root # xdg-mime default browser.desktop text/html
You can also set the default browser globally:
root # xdg-settings set default-web-browser browser.desktop
Once these have been set you can test it with:
root # 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