Skip to content

Instantly share code, notes, and snippets.

@chalist
Last active September 10, 2020 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalist/2502ef4c885e3591537bd837c50e9c48 to your computer and use it in GitHub Desktop.
Save chalist/2502ef4c885e3591537bd837c50e9c48 to your computer and use it in GitHub Desktop.
Set linux default browser in Linux

I set it in /usr/share/applications/defaults.list and it worked for me (opening links from the Slack app). Indeed, the list of available applications is /usr/share/applications/\*.desktop.

This can probably also be done per-user in ~/.config/mimeapps.list

These lines had to be edited in my case:

text/html=firefox.desktop;
text/xml=firefox.desktop;
application/xhtml_xml=firefox.desktop;
image/webp=firefox.desktop;
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/ftp=firefox.desktop;
@chalist
Copy link
Author

chalist commented Sep 10, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment