Default applications

Here's the content of my ~/.config/mimeapps.list

[Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
x-scheme-handler/mailto=thunderbird.desktop
message/rfc822=thunderbird.desktop
text/markdown=atom.desktop
application/json=atom.desktop
application/x-shellscript=atom.desktop
text/plain=atom.desktop

[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/ftp=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
x-scheme-handler/mailto=thunderbird.desktop;
message/rfc822=thunderbird.desktop;
text/markdown=atom.desktop;
binary/octet-stream=atom.desktop;
audio/x-mpegurl=rhythmbox.desktop;
application/json=atom.desktop;
application/x-shellscript=atom.desktop;
text/plain=atom.desktop;

For new association,

  • Either guess it using a MIME types list, and edit this file.
  • Or using a command like xdg-mime default org.gnome.Nautilus.desktop inode/directory
  • Or touch tmp.extention, create the association with the usual right-click / properties / open with / default application.