At user level there is this command to set an application as default for
a file type:
$ xdg-mime default MyProgram.desktop my/type
(not useful for system wide action)

System wide defaults I see that are registered at some of these files:
/usr/share/applications/mimeapps.list
/usr/share/applications/defaults.list
/usr/local/share/applications/mimeapps.list
/usr/local/share/applications/defaults.list

Is there a better way to setup this than writing directly to one of
these files?

Reply via email to