You are not logged in.

#1 2010-01-08 02:47:20

ernesto
Member
Registered: 2008-10-30
Posts: 21

file associations clobbered

I really like Arch, but one of the major annoyances for me is everytime I install a new application it takes over the relevant file associations. Like pacman -S vlc will take over media files without asking, -S gimp will take over image files, etc.

Can I prevent this?

Offline

#2 2010-01-08 03:13:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: file associations clobbered

You'll get answers faster if you provide more information. Which DE are you using?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2010-01-08 03:55:19

ernesto
Member
Registered: 2008-10-30
Posts: 21

Re: file associations clobbered

It's DE agnostic, AFAIK.  Happens in both KDE and GNOME. I think they both use /usr/share/applications/mimeinfo.cache

Last edited by ernesto (2010-01-08 03:56:45)

Offline

#4 2010-01-08 04:58:25

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: file associations clobbered

In nautilus you can set the association by right clicking on that file. If your using pcmanfm you can edit the ~/.local/share/applications/mimeinfo.cache

Offline

#5 2010-01-08 05:19:32

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: file associations clobbered

If it uses ~/.local/share/applications/mimeinfo.cache as pcmanfm does, you might find mimeman useful.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2010-01-08 11:15:32

ernesto
Member
Registered: 2008-10-30
Posts: 21

Re: file associations clobbered

kgas wrote:

In nautilus you can set the association by right clicking on that file.

Yeah, that's how I change them back to the proper application. My problem is with newly installed application taking over the association. When I install gimp or whatever I don't want to have to keep re-associating my image formats with eog, it's tiring after png,gif,jpg,...

Last edited by ernesto (2010-01-08 11:16:38)

Offline

#7 2010-01-09 17:43:02

ernesto
Member
Registered: 2008-10-30
Posts: 21

Re: file associations clobbered

so no ideas?

Offline

#8 2010-01-09 18:10:44

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: file associations clobbered

Hack: Disable /usr/bin/update-desktop-database before installing a package that you know will take over valued mime types, install the package (should still work even if update-desktop-database cannot be found), edit /usr/share/applications/<application_name>.desktop, delete or edit the MimeType= line, re-enable update-desktop-database so that it can be used normally by other packages as they are installed.

Offline

#9 2010-01-20 04:55:33

MercuryShadow
Member
From: Chciago 'burbs
Registered: 2010-01-04
Posts: 29

Re: file associations clobbered

I'm experiencing this as well. It has become exceedingly frustrating.

Offline

#10 2010-01-22 07:59:32

MercuryShadow
Member
From: Chciago 'burbs
Registered: 2010-01-04
Posts: 29

Re: file associations clobbered

Lately, even though Firefox is configured to open PDF files in evince, and it is set as the default program for opening PDFs in Nautilus, Firefox still opens PDFs in Gimp. GIMP, for chrissakes! WTF?

Offline

#11 2010-01-23 00:24:39

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: file associations clobbered

yeah, well firefox associations are fucked. anyway, i was thinking of patching this to reverse the behaviour but it turns out the priority of association determined by update-desktop-database pretty much depends on the internal filesystem sorting of the relevant .desktop files (it uses readdir()), so it could be a lot of effort to fix


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#12 2010-01-23 00:44:44

urist
Member
Registered: 2009-02-22
Posts: 248

Re: file associations clobbered

MercuryShadow wrote:

Lately, even though Firefox is configured to open PDF files in evince, and it is set as the default program for opening PDFs in Nautilus, Firefox still opens PDFs in Gimp. GIMP, for chrissakes! WTF?

Better than whatever I did to FUBAR my associations. Chrome opens PDFs in Firefox, which opens them in Evince.

Offline

Board footer

Powered by FluxBB