You are not logged in.

#1 2014-02-14 22:05:15

2mac
Member
Registered: 2013-11-09
Posts: 95

Firefox demands to be default XML viewer

I occasionally have to work on XMLs for work, and I prefer to use my Arch laptop to do so. However, I cannot set the default XML reader to anything. As soon as I make a change, Firefox is set to the default again.

I'd like to set the default to gvim.

Offline

#2 2014-02-14 22:24:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Firefox demands to be default XML viewer

This generally depends on the DE or filemanager you are using.  I assume you are talking about clicking on the files in a file manager or desktop manager, right?

Many DE's use xdg-open by default.  You can customize xdg-open, or just completely replace it with a different mechanism.

In any case, more information about how you are opening these files will allow for more specific answers.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-02-15 18:29:03

2mac
Member
Registered: 2013-11-09
Posts: 95

Re: Firefox demands to be default XML viewer

I'm using the GNOME DE with the Thunar file browser. If I open an XML by double-clicking, it opens with Firefox. If I right-click the file, Firefox is the top choice for applications to use. If I select "Open with other application" and set another as default (say gedit or vim), it will open with the program I chose, but the default will go right back. If I open up the file's properties and change the default, it goes right back to Firefox.

Offline

#4 2014-02-15 18:46:08

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: Firefox demands to be default XML viewer

Check the ownership and permissions on ~/.local/share/applications and the files contained within it.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-02-28 22:26:39

2mac
Member
Registered: 2013-11-09
Posts: 95

Re: Firefox demands to be default XML viewer

Permissions on the folder itself are 755, and the permissions on the contents seem to be 644.

Offline

#6 2014-02-28 22:27:11

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: Firefox demands to be default XML viewer

And the ownership?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2014-03-08 01:49:27

2mac
Member
Registered: 2013-11-09
Posts: 95

Re: Firefox demands to be default XML viewer

Myself and the users group.

Offline

#8 2014-03-08 01:56:25

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: Firefox demands to be default XML viewer

That's fine. How about the files inside the folder?

Particularly the mimeapps.list.

I don't really want to wait for a week or two for your next reply, so assuming it's the same (or permissions are something like 644), can you modify this file manually? If so, change the application/xml= value to gvim.desktop. If not, check your filesystem mount options.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2014-03-08 02:28:18

2mac
Member
Registered: 2013-11-09
Posts: 95

Re: Firefox demands to be default XML viewer

I opened the file with vim (permissions were 644), and it was already set to that! Firefox is taking priority even though settings are being saved to the file.

Offline

Board footer

Powered by FluxBB