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 14 forks source link

Global default applications are ignored by mimeopen #20

Closed marmarek closed 7 years ago

marmarek commented 8 years ago

Standard http://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.html defines that default application associations should be first searched in $XDG_CONFIG_HOME, then $XDG_DATA_HOME (among other directories). This makes it possible to ship some distribution-wide defaults, while allowing user to choose some personal preferences. Currently mimeopen ignores the later files - when no personal preferences are set, it basically choose "random" application (first on the list) as default (when -n is used). Even if some system-wide default is set.

mbeijen commented 7 years ago

Fixed by Celti!