mbeijen / File-MimeInfo

Perl module for determining file types using the freedesktop.org shared mime-info database
https://metacpan.org/module/File::MimeInfo
20 stars 13 forks source link

mimeapps.list Standard #8

Closed Smylers closed 7 years ago

Smylers commented 10 years ago

Hi there. Thanks for mimeopen and associated modules.

From the docs for File::MimeInfo::Applications:

At present the file with defaults is _$XDG_DATAHOME/applications/defaults.list. This file is not specified in any freedesktop spec and if it gets standardized it should probably be located in $XDG_CONFIG_HOME.

There now seems to be a standard, and the chosen filename is mimeapps.list.

As expected, symlinking defaults.list to mimeapps.list makes mimeopen use the preferences I've expressed with various graphical file managers.

Well done also for anticipating the directory move.

silverhammermba commented 7 years ago

An update to this issue, the standard location is $XDG_CONFIG_HOME/mimeapps.list i.e. ~/.config/mimeapps.list.

A nice non-breaking way to implement this would be to read both locations and have the non-deprecated location take precedence.

ghost commented 7 years ago

Thanks!