You are not logged in.

#1 2016-02-01 15:46:05

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

[SOLVED] xdg-mime not working

I'm trying to make chromium open PDFs with evince, but xdg-mime is not working:

$ xdg-mime query default application/pdf
gimp.desktop
$ xdg-mime default evince.desktop application/pdf
$ xdg-mime query default application/pdf
gimp.desktop

P.S.: The above commands are from the wiki pointed by https://bbs.archlinux.org/viewtopic.php?pid=1600700

Edit: marked as solved.

Last edited by cemsbr (2016-02-05 21:48:39)

Offline

#2 2016-02-01 18:45:01

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] xdg-mime not working

Testing it now, it seems that xdg-mime still saves changes to ~/.local/share/applications/mimeapps.list ($XDG_DATA_HOME/applications/mimeapps.list), which is deprecated. The current standard uses ~/.config/mimeapps.list ($XDG_CONFIG_HOME/mimeapps.list).

Either edit the file manually or use mimeo.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#3 2016-02-05 21:47:04

cemsbr
Member
From: Brazil
Registered: 2008-05-03
Posts: 111
Website

Re: [SOLVED] xdg-mime not working

The file ~/.config/mimeapps.list also had evince.desktop, but followed by ";gimp.desktop". I let only evince and it worked. Thank you.

Offline

Board footer

Powered by FluxBB