Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mimeapps.list instead of defaults.list in file association config #11

Closed
jleclanche opened this issue Feb 10, 2014 · 3 comments
Closed

Comments

@jleclanche
Copy link
Member

Razor-qt/razor-qt#603

@pmattern
Copy link
Contributor

Didn't look through the commits thoroughly, but according to my tests lxqt-config-file-associations from latest lxqt-config is writing into $XDG_DATA_HOME/applications/mimeapps.list and hence not into defaults.list any more.
(On a side note I failed to figure out from where it's taking defaults as long as this file doesn't exist.)

Aside from this, none of the other LXQt components involved in default applications seems to make use of defaults.list either: lxqt-config-session is using environment variables anyway. libfm-pref-apps is writing into $XDG_CONFIG_HOME/mimeapps.list, customized applications go to $XDG_DATA_HOME/applications/userapp-foo-bar.desktop.

Issue can thus be closed, imo.

@surlykke
Copy link
Contributor

2015-02-20 18:12 GMT+01:00 Peter Mattern notifications@github.com:

Didn't look through the commits thoroughly, but according to my tests
lxqt-config-file-associations from latest lxqt-config is writing into
$XDG_DATA_HOME/applications/mimeapps.list and hence not into defaults.list
any more.

Yeah, I think I implemented this some months ago. Sorry if I neglected to
close the issue.

(On a side note I failed to figure out from where it's taking defaults as
long as this file doesn't exist.)

If no entry is found in mimeapps.list, we find those desktopfiles that
declare the abillity to handle the mimetype in case. These desktopfiles can
have an attribute 'InitialPreference'. Desktopfiles with higher
InitialPreference are preferred. If several desktopfiles have the same
InitialPreference it is random which is taken. This is what can be deduced
from the standard AFAIR.

br. Chr.

Aside from this, none of the other LXQt components involved in default
applications seems to make use of defaults.list either: lxqt-config-session
is using environment variables anyway. libfm-pref-apps is writing into
$XDG_CONFIG_HOME/mimeapps.list, customized applications go to
$XDG_DATA_HOME/applications/userapp-foo-bar.desktop.

Issue can thus be closed, imo.


Reply to this email directly or view it on GitHub
#11 (comment).

@paulolieuthier
Copy link
Contributor

Grepping "defaults.list" in lxqt-config returns nothing, and grepping "mimeapps.list" does return something. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Issues
  
Translations and L10N
Development

No branches or pull requests

5 participants