You are not logged in.
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
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
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
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
Permissions on the folder itself are 755, and the permissions on the contents seem to be 644.
Offline
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
Myself and the users group.
Offline
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
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