I have been struggling with the same issue and managed to fix it by installing the PDF download pluging for Firefox. In the options of the plugin I could set it to use okular for opening pdf docs.
HTH
JK
Newcomer
I have been struggling with the same issue and managed to fix it by installing the PDF download pluging for Firefox. In the options of the plugin I could set it to use okular for opening pdf docs.
HTH
JK
Newcomer
Thanks gogga.
This issue was puzzling me no end and I have tried all the suggestions above before to no avail. installing the PDF Download plugin for firefox did the trick!
Thanks again.
MK
![]()
I got a solution that works from another forum (see here). I have copied it below:
to make pdf open using a specific application when you double click it in the FF download manager, edit /usr/share/applications/mimeinfo.cache , search for: application/pdf= . Put the name of *application*.desktop of the desired application right after = .
So to use okular, it should look like this:
application/pdf=kde4-okularApplication_pdf.desktop
Notice the extra kde4- , this is necessary because okularApplication_pdf.desktop is in the subfolder kde4 in /usr/share/applications.
Replace okularApplication_pdf.desktop with whatever name of the .desktop file of the app you want. If it's in the same folder as mimeinfo.cache, i.e. /usr/share/applications then use the name of the .desktop folder, if it's in a subfolder then prefix it with kde4- , or kde- , whatever. See if this works.
mimeinfo.cache is a dynamic file and will be changed automatically when you install/uninstall a programme (this explains what happened when you uninstalled gimp). Of course you can keep a local copy of this file maintaining your own associations across reinstalls), you need to put this copy in ~/.local/share/applications , also a copy of /usr/share/applications/defaults.list
Newcomer
Actually changing the file association should be done in /etc/gnome-defaults.conf... but after spending about 2 hours tweaking it, I still was unable to get it to use my settings... whenever I ran SuSEconfig --module glib2 (which should read the configs from the previously mentioned conf file), it associated the pdf with gimp...
I decided to remove the postscript and pdf mimetype entries from the /usr/share/application/gimp.desktop file, to force okular, but that resulted in not having any entry at all for pdf files...
And then I saw, that the SuSEconfig generates 2 mimetype handler files... one contains only gnome programs (/var/cache/gio-2.0/defaults.list), but also another one, which contains both gnome and kde programs (/usr/share/application/mimeinfo.cache). So I tried setting the /user/share/application/defaults.list (link pointing to /var/cache/gio-2.0/defaults.list which is used by gnome) to point to the before mentioned mimeinfo.cache... and that indeed got my problems solved...
All in all I have no clue what the heck does the SuSEconfig screw up, and why on earth does it generate two separate "default" mime files, but this *seems* to have solved my problems with FF and gimp.
Newcomer
I'm a visitor from the Debian world, where I had the same problem. I eventually found a solution: Firefox wants the full path to the app to use. So I went into Preferences and, for xpdf, I chose ;Use other'. Then I navigaged to /usr/bin/xpdf and clicked on that. Now Firefox uses xpdf instead of gimp.
Newcomer
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.
- Athlon X6 3.6 GHz, 16 GB DDR3, 30 GB SSD, 3 TB of disks, GT540, openSUSE 12.2 x86_64 + KDE 4.10 + GNOME 3
- ASUS A73SD, Intel + GT610M Optimus, 6 GB, 120 GB SSD, openSUSE 12.3
Anything that can go wrong.... will teach us
http://en.opensuse.org/User:Knurpht
http://nl.opensuse.org/Gebruiker:Knurpht
Newcomer
Have a look at
[ubuntu] HOWTO Fix GIMP associating with PDF files (bare-hand approach) - Ubuntu Forums
It might help ...
Newcomer
Also found in another forum: simply removing the pdf mimetype from /usr/share/applications/gimp.desktop works.
Newcomer
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
Bookmarks