You are not logged in.

#1 2015-08-29 17:26:04

d125q
Member
From: Europe/Berlin
Registered: 2015-01-01
Posts: 13

[SOLVED] xdg-{mime,open} and ~/.config/mimeapps.list

Is it just me or does xdg-mime use only ~/.local/share/applications/mimeapps.list and does not use ~/.config/mimeapps.list at all?

For example, I have the following in ~/.config/mimeapps.list:

[Default Applications]
audio/flac=deadbeef.desktop

However, running `xdg-mime query default audio/flac' gives me mpv.desktop as a result. If I put the above in ~/.local/share/applications/mimeapps.list, then it gives me deadbeef.desktop as expected. Is this behavior documented anywhere?

EDIT: xdg-open also uses mpv instead of deadbeef when passed a FLAC file.

Last edited by d125q (2015-08-31 21:18:55)

Offline

#2 2015-08-29 19:52:04

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: [SOLVED] xdg-{mime,open} and ~/.config/mimeapps.list

Yes, the XDG tools don't follow the MIME specifications. But considering how badly they are written (and consequently, fail) I'd suggest using an alternative. That, or file a bug.

And no, creating symlinks won't work.

http://doc.cat-v.org/plan_9/4th_edition/papers/plumb
https://git.fleshless.org/sx-open/tree/
https://aur.archlinux.org/packages/mimeo/ (note: also ~/.local/share)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2015-08-29 22:49:43

d125q
Member
From: Europe/Berlin
Registered: 2015-01-01
Posts: 13

Re: [SOLVED] xdg-{mime,open} and ~/.config/mimeapps.list

Thanks for the info. Unfortunately, I find mimeo to be buggy; I can't even run `mimeo --update'.

Offline

#4 2015-08-30 04:18:23

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: [SOLVED] xdg-{mime,open} and ~/.config/mimeapps.list

I'd leave a comment on the AUR page, Xyne is usually quick to respond.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#5 2015-09-13 19:03:11

Gede
Member
Registered: 2009-09-03
Posts: 28

Re: [SOLVED] xdg-{mime,open} and ~/.config/mimeapps.list

I wish I had seen this thread sooner. It would have saved me a few hours of reading docs and trying things.
Thank you for the info.

Is there any expectation of the XDG tools being updated in the near future?

Offline

Board footer

Powered by FluxBB