You are not logged in.

#1 2008-10-31 14:41:53

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

gimp now opens pdf files (very annoying)

Ever since the new gimp was installed, gimp decided that it needed to associate itself with PDF files. So when I open PDF files from firefox or thunderbird it starts gimp. I don't want this. How can I set it back a normal pdf viewer like xpdf?

Offline

#2 2008-10-31 14:56:38

rsambuca
Member
From: Calgary, Canada
Registered: 2008-07-21
Posts: 143

Re: gimp now opens pdf files (very annoying)

What Desktop Environment/Window Manager are you using?

Offline

#3 2008-10-31 16:29:06

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: gimp now opens pdf files (very annoying)

rsambuca wrote:

What Desktop Environment/Window Manager are you using?

XFCE

Offline

#4 2008-10-31 18:20:14

baze
Member
Registered: 2005-10-30
Posts: 393

Re: gimp now opens pdf files (very annoying)

same problem here, but with gnome.

Offline

#5 2008-10-31 18:40:46

Hrod beraht
Member
Registered: 2008-09-30
Posts: 186

Re: gimp now opens pdf files (very annoying)

In Firefox, select Edit --> Preferences and select the Applications tab. Scroll down to PDF file and select the action you want it to perform, i.e. Use xpdf....

Bob

Offline

#6 2008-10-31 21:47:54

octacore
Member
Registered: 2008-10-31
Posts: 7

Re: gimp now opens pdf files (very annoying)

I didn't even have pdf option listed in firefox. I had to manually find binary for evince in gnome "open with" dialog.

Offline

#7 2008-10-31 21:56:56

baze
Member
Registered: 2005-10-30
Posts: 393

Re: gimp now opens pdf files (very annoying)

btw, i'm not using firefox in gnome, but epiphany. seems like a xulrunner issue and there is no option to override it in ephy.

Offline

#8 2008-10-31 22:02:22

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: gimp now opens pdf files (very annoying)

In Gnome, you can right-click a pdf file, go to properties, and then set the app to open all pdf files.


oz

Offline

#9 2008-11-01 04:54:30

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: gimp now opens pdf files (very annoying)

Removing the pdf mimetype from /usr/share/applications/gimp.desktop does seem to help...

Offline

#10 2008-11-01 09:47:19

baze
Member
Registered: 2005-10-30
Posts: 393

Re: gimp now opens pdf files (very annoying)

ozar wrote:

In Gnome, you can right-click a pdf file, go to properties, and then set the app to open all pdf files.

that doesn't fix the problem though. i have only evince listed there.

Offline

#11 2008-11-01 10:43:46

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: gimp now opens pdf files (very annoying)

Firefox uses the program, which I select as default for pdf in pcmanfm (evince-gtk). By default on a fresh install I do have Gimp as default program, but it's changed very fast. On XFCE, which I used the last two weeks (and maybe I'll go back, as soon as the new version is out) and had no problem at all to make evince the default app.

Offline

#12 2008-11-01 13:00:12

elmer_42
Member
From: /na/usa/ca
Registered: 2008-10-11
Posts: 427

Re: gimp now opens pdf files (very annoying)

I know that for me, using Openbox + PCMan File Manager, I was able to set my PDF reader to evince by right clicking and setting evince in the "Open With..." dialogue.


[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]

Offline

#13 2008-11-13 23:13:29

aegis
Member
Registered: 2008-11-13
Posts: 23

Re: gimp now opens pdf files (very annoying)

Thanks ozar, your suggestion worked for me...  I thought it would be more complicated than that.

Offline

#14 2008-11-19 12:46:10

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: gimp now opens pdf files (very annoying)

I use the following sed command to move gimp to the right and let evince, eog or whatever application follows to be the default in /usr/share/applications/mimeinfo.cache:

sed -i -r 's|=(gimp\.desktop);([^;]+?)|=\2;\1|' /usr/share/applications/mimeinfo.cache

However, when `update-desktop-database' is run (e.g.: during package updates), gimp jumps right back at the front, so I have to rerun the above command.

I've given this issue a lot of thinking but I wasn't able to come up with anything permanent. Strictly speaking, this is not a bug and I'm aware that individual file associations can be set that won't revert on package updates. Still, it would be awesome if someone could come up with a viable solution as to how to have the expected behavior system-wide.

Last edited by foutrelis (2008-11-19 12:49:06)

Offline

#15 2010-09-21 14:02:57

twouters
Member
Registered: 2010-04-01
Posts: 29

Re: gimp now opens pdf files (very annoying)

I know this is an old thread but I just wanted to add what I did to solve this:

mimeopen -d anypdf-file.pdf

This will ask you which application you want to use to open this type of file and saves it in ~/.local/share/applications/defaults.list
You could also edit this file manually and add the following

[Default Applications]
application/pdf=xpdf.desktop;

This file isn't updated when update-desktop-database is run.

Offline

#16 2010-09-21 14:57:32

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: gimp now opens pdf files (very annoying)

Thanks for adding a solution, but due to the rolling release nature of Arch, things that might have been applicable 2 years ago may no longer apply.

Closing...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB