Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox, gimp and pdf [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5347
Location: France, Old Europe

PostPosted: Wed Apr 17, 2013 8:18 pm    Post subject: Firefox, gimp and pdf [SOLVED] Reply with quote

Hi,

I know this is a known issue of long standing one, but despite lots of long threads I have found neither the cause nor the solution. And it is a serious PITA.

If I down load a pdf by clicking on a link in firefox, it uses okular , as I have specified.

However, if I right.click on a tab in the download status bar and select "open", it tries to open it with GIMP !

Gimp fails abysmally, have taken forever to load whatever it does, and lets me get rid of it again. The tab is now cleared since FFx dumbly assumes I read the file.

Now I don't know who or what set this dumb link for Gimp as pdf editor but I'd really like to know what sets this up and how to get rid of it.

PS I've note I've been using Gentoo for about 10 years so please don't just explain how to set up helper apps on firefox.

TIA, Gentree. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86


Last edited by Gentree on Thu Apr 18, 2013 2:13 am; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8484
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Apr 17, 2013 8:32 pm    Post subject: Reply with quote

What desktop environment?

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Wed Apr 17, 2013 10:44 pm    Post subject: Reply with quote

One place I'd check is ~/.mozilla/firefox/<profile>/mimeTypes.rdf to see if there are any references to GIMP in there.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5984

PostPosted: Wed Apr 17, 2013 11:32 pm    Post subject: Reply with quote

I strongly suspect it's a matter of /usr/share/applications/zzz-gimp.desktop.
That 'zzz-' prefix is for the sake of preventing it, but it might no longer work.
Though recently firefox gained native pdf support - for average pdf files it's quite decent.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5347
Location: France, Old Europe

PostPosted: Thu Apr 18, 2013 1:49 am    Post subject: Reply with quote

@John

FVWM


@tomk:

~/.mozilla/....

good idea, but no. No mention of gimp in there, and this is the PDF entry:

Code:
 <RDF:Description RDF:about="urn:mimetype:application/x-download"
                   NC:fileExtensions="pdf"
                   NC:description="PDF document"
                   NC:value="application/x-download"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-download"/>
  </RDF:Description>


@VoidMage:

Quote:
/usr/share/applications/zzz-gimp.desktop
That 'zzz-' prefix is for the sake of preventing it, but it might no longer work.


I have such a zzz file and it contains a pdf entry :D

Is the zzz prefix part of the installation or does that mean I've been in here already and forgotten about it?

thanks to all for the suggestions.
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5347
Location: France, Old Europe

PostPosted: Thu Apr 18, 2013 1:59 am    Post subject: Reply with quote

... sadly FFx is still trying to use gimp for pdf :x

BTW I'd already found a similar file somewhere and removed pdf, but don't recall this zzz business.

It could have been this file since I've been crawling all over the file system trying to find this sort of cruft and I did not make notes of the one or two changes I made.

Also found this in mimeinfo.cache in the same directory:
application/pdf=zzz-gimp.desktop;kde4-okularApplication_pdf.desktop;evince.desktop;

BINGO

That seems to have fixed it. Let's hope nothing reverts it.

Many thanks void' , you sent me to the right place. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5984

PostPosted: Thu Apr 18, 2013 10:34 am    Post subject: Reply with quote

mimeinfo.cache is a file that's regenerated i.e. fdo-mime_desktop_database_update, so if you modified it, chances are it gets overwritten soon.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5347
Location: France, Old Europe

PostPosted: Thu Apr 18, 2013 11:32 am    Post subject: Reply with quote

thanks for the warning.

So to find out what package is doing the guff and get it fixed I need to find out where this fdo-mime_desktop_database_update gets its silliness from.

You seem pretty on the ball with all this do you know how it works?
8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum