FS#48517 - Nautilus doesn't change the default app to open xml files

Attached to Project: Arch Linux
Opened by Juan Simón (j1simon) - Wednesday, 09 March 2016, 10:25 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 09 March 2016, 13:33 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

GNOME Shell 3.18.4
GNOME nautilus 3.18.5

"application/xml" mime-type is associated by default to Firefox in my system. I want to open it with a text editor.
I select, in Nautilus, the default application to gedit but it doesn't work.

I've followed the guide of the wiki: https://wiki.archlinux.org/index.php/Default_applications#File_managers

I've written these 2 files:

$ cat ~/.local/share/applications/defaults.list:
[Default Applications]
text/markdown=menulibre-abricotine.desktop
application/xml=org.gnome.gedit.desktop

$ cat ~/.local/share/applications/mimeapps.list:
[Default Applications]
inode/directory=org.gnome.Nautilus.desktop
application/xml=org.gnome.gedit.desktop

Nothing works.

Attach a video.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 09 March 2016, 13:33 GMT
Reason for closing:  Not a bug
Comment by Juan Simón (j1simon) - Wednesday, 09 March 2016, 10:42 GMT
More info with "mimeo":

$ mimeo --mime2desk application/xml
application/xml
org.gnome.gedit.desktop

"xdg-open file.xml" opens Firefox too but:

$ xdg-mime query default application/xml
org.gnome.gedit.desktop



Comment by Juan Simón (j1simon) - Wednesday, 09 March 2016, 12:47 GMT
Solved after I changed 'text/xml' mime-type in '~/.config/mimeapps.list'. I think there are too many files in different locations that theoretically do the same.

Loading...