Gimp default for opening PDF's from Firefox

I had the same problem. I resolved it by editing the Firefox preferences, clicking on “use other” and following the links to /usr/bin/okular. Double clicking on this okular link placed it in the Firefox Applications action preference. It now opens okular for me when clicking on a .pdf document. Hope this helps.

I think acompbell is right. If i do anything manually, just replacing the app opening pdf’s it’s not working. If I change from FF, the full path to the app is writen and it works. Ridiculous BTW.

Have a look at
[ubuntu] HOWTO Fix GIMP associating with PDF files (bare-hand approach) - Ubuntu Forums](http://ubuntuforums.org/showthread.php?t=1130366)

It might help …

Also found in another forum: simply removing the pdf mimetype from /usr/share/applications/gimp.desktop works.

I found your discussion maybe a little bit late. But a convenient solution I created myself is as follows:
open with text editor and root rights /etc/gnome_defaults.conf
add the following line after the entry “# mime/type=xxx.desktop”:
application/pdf=acroread.desktop
save the file and run with root rights:
SuSEconfig --module glib2

viola - done!
You have to bear in mind that this will work only with acroread installed from the repositories. You have to change this in case of downloading Acrobat Reader 9 from Adobe.

Cheers, Manni

I think finally I’ve found the recipe:

There is a file called: /usr/share/applications/defaults.list

with a line:

application/pdf=gimp.desktop

just change to

application/pdf=kde4-okular.desktop

and that’s all.

Hope this helps.
Diego

interesting: the top of my /usr/share/applications/defaults.list says:
“# generated by SuSEconfig --module gnome-vfs2 from
/etc/gnome_defaults.conf” and i therefore wonder if it would actually
have any effect if i were running KDE4…


platinum

Works for me (on KDE4)

Thanks dercol!

Has to be repeated upon certain (as yet unknown) upgrades.

Thanks Diego, and I found for Opera:
linux-pb1x:/usr/share/applications # grep “gimp” * |grep “pdf”
mimeinfo.cache:application/pdf=gimp.desktop;kde4-okularApplication_pdf.desktop;

so I took “gimp.desktop;” out.

I was having the same problem with Gimp opening on pdf’s in Firefox and I just “fixed” it by following a suggestion here. In the open dialog, I picked “other” and then pointed to user>bin>okular. No more Gimp for pdfs here. Thanks much!

still relevant for opera 11.61 for opensuse 12.1 :smiley:

I was having a similar problem with Zotero standalone, which I believe is based on the Firefox plugin architecture in some way. Although firefox and dolphin both opened PDFs with my viewer of choice (PDFXChange), Zotero kept opening it with GIMP. Changing the defaults.list to PDFXChange Viewer has it working now.

that worked for me

Firefox has its own file under each profile.
Rename the file (i.e., mv MimeTypes.rdf MimeTypes.rdf.backup-$(date +%Y%m%d-%H%M)) and restart Firefox.
NOTE: You’ll have to reset all mimetypes again, but you have the original as a backup.

If KDE, check out Personal Setting.
Or for ALL, open your file browser and right-click and select “open with other application”.
The dialog that opens also gives the user an option to make it the default.
This is probably how Gimp became the default. Easily changeable.

http://kb.mozillazine.org/MimeTypes.rdf

Hello, for me this issue has recently arrived through upgrading to
opensuse 11.1. I have been unable to find a setting to stop GIMP opening
in Firefox or Configure Desktop. Has anyone on the Forum had any advance
in dealing with it? Thanks, Stuart


stuartn

stuartn’s Profile: http://forums.opensuse.org/member.php?userid=10976
View this thread: http://forums.opensuse.org/showthread.php?t=398397

Try this, save the pdf to desktop, right click, open with kpdf. Or, open
kpdf, open to desktop, click file, done. Works here.


oilpaint

oilpaint’s Profile: http://forums.opensuse.org/member.php?userid=960
View this thread: http://forums.opensuse.org/showthread.php?t=398397

I just upgraded to SUSE 11.1 also and had the same problem with firefox.
I went into Firefox’s Edit: Preferences: Applications and selected the
PDF document action to “Use other” I then selected Okular in the
usr/bin directory. I then changed it back to “Always ask” so that I can
choose which program to load with the pdf.


TRoeschen

TRoeschen’s Profile: http://forums.opensuse.org/member.php?userid=3922
View this thread: http://forums.opensuse.org/showthread.php?t=398397

Thanks for these suggestions. Files open fine (with Okular) from the
desktop and dolphin. My particular issue is Zotero within Firefox.
Unfortunately, setting “always ask” in Firefox doesn’t stop the default
GIMP opening immediately when a PDF file is double-clicked within
Zotero. A rather inconvenient workaround in Zotero is to open the
container directory and then the PDF file. However, this is exacerbated
by incorrect referencing to the container directory. It only commenced
with 11.1 but it is hard to say whether this is a Suse or Zotero thing.
We will just have to wait to see how this works out in Suse, Firefox and
Zotero. Again, thanks for the suggestions, Stuart


stuartn

stuartn’s Profile: http://forums.opensuse.org/member.php?userid=10976
View this thread: http://forums.opensuse.org/showthread.php?t=398397

I briefly had this behaviour as well, resolved itself without me
(remembering) changing anything.

Only thing I can think of is that it updated via YaST (have the
community > mozilla repository enabled)


“-So you’re saying a naked maid ceases to be a maid?
I believe she probably once had the rest of the outfit…-” - Artefact

Axeia’s Profile: http://forums.opensuse.org/member.php?userid=4794
View this thread: http://forums.opensuse.org/showthread.php?t=398397

It’s still happening with me. I am using the mozilla repository so that
can’t be the problem.


TheBlackCat

TheBlackCat’s Profile: http://forums.opensuse.org/member.php?userid=3747
View this thread: http://forums.opensuse.org/showthread.php?t=398397