LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-24-2016, 04:48 PM   #1
ljb643
Member
 
Registered: Nov 2003
Posts: 448

Rep: Reputation: Disabled
GIMP help fails with "No application is registered..."


Using Slackware-14.2 with Xfce and GIMP-2.8.18. I've installed the GIMP HTML help files, and linked to them from /usr/share/gimp/2.0/help. In GIMP, Preferences - Help System, User Manual is set to "Use a locally installed copy", and GIMP confirms "There's a local installation of the user manual".

When I try to use Help from inside GIMP, either with the F1 key or with the menu Help > Help, I get an error dialog which says: "GIMP Message. Calling error for procedure 'plug-in-web-browser': No application is registered as handling this file".

Help works in Slackware-14.1, also using GIMP-2.8.18 (Slackware patch). It opens my selected web browser and displays the help index page.

I should point out that in 14.2 "exo-open URL" does work - opens my browser with the given URL. Right-click Open Link over a URL from Xfce Terminal also works.

Any idea why GIMP is unable to open a browser to the help pages in Slackware-14.2?
 
Old 09-24-2016, 06:23 PM   #2
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware -current 32bit!
Posts: 543

Rep: Reputation: 205Reputation: 205Reputation: 205
Quick question:
How did you install gimp-help? From the Slackbuild or from one of gimp's download mirrors?
 
Old 09-24-2016, 06:50 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 448

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by STDOUBT View Post
Quick question:
How did you install gimp-help? From the Slackbuild or from one of gimp's download mirrors?
Downloaded from a GIMP mirror site and unpacked.
It works if I access it directly from my browser, of course, with a file: URL. So it isn't a huge problem that it doesn't work from inside GIMP. But I'm curious why it fails, when it worked under Slackware-14.1.
 
Old 09-24-2016, 07:34 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,135

Rep: Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365
We have gimp-help package available in SBo: https://slackbuilds.org/repository/1...stem/gimp-help
 
Old 09-24-2016, 08:01 PM   #5
ljb643
Member
 
Registered: Nov 2003
Posts: 448

Original Poster
Rep: Reputation: Disabled
There is nothing in the slackbuilds.org gimp-help.SlackBuild script that would affect this, and no post-install script. (Yes, I forgot - help 2.6 and older was just an unpack, but starting 2.8 you have to build it from the download. Which I did.)

Is there anyone running Slackware-14.2, and has gimp-help installed (whether from slackbuilds.org or otherwise)? Does it work from inside GIMP with F1 or Help > Help?

It is looking to me like a gvfs issue, but I don't know if it is a problem on my PCs (I tried on 2), or with Slackware-14.2 itself.
 
Old 09-24-2016, 08:14 PM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,135

Rep: Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365
Yes, it works fine on my computer using gimp-help from SBo
 
Old 09-25-2016, 09:59 AM   #7
ljb643
Member
 
Registered: Nov 2003
Posts: 448

Original Poster
Rep: Reputation: Disabled
OK, thanks, that helps. So there is something wrong on my end.

I've narrowed the problem down a lot. From the GIMP script-fu console, I can use this command (similar to what the help function uses, I think):
Code:
(plug-in-web-browser "file:///tmp/test.html")
I found that this works if test.html has no Document Type Declaration (DOCTYPE line), or has a DOCTYPE that specifies HTML. But if it has a DOCTYPE that specifies XHTML (like the GIMP help files) it fails with the same message I get from Help.

Furthermore, I found that exo-open also works or fails (although without any message) on the same files.

So it looks like the underlying code (which I think is gtk_show_uri()) opens and reads the file, and if it sees XHTML, decides there is no application to handle it. But of course, the browser would handle it fine.

I haven't found the fix yet, but I'm getting closer.
 
Old 09-25-2016, 12:09 PM   #8
ljb643
Member
 
Registered: Nov 2003
Posts: 448

Original Poster
Rep: Reputation: Disabled
This:
Code:
$ xdg-mime query filetype /usr/share/gimp/2.0/help/en/index.html
shows that the system thinks the MIME type for this file is application/x-extension-html rather than text/html. I don't know why that should be.

The fix follows from that. Use Xfce MIME Type Editor (under Settings) to associate the browser application with the MIME type application/x-extension-html. Or, you can use Thunar, select an HTML file which has an XHTML DOCTYPE, use Open With Other Application..., pick your browser, and check Use as Default for this kind of file. Same result either way.

That fixes both GIMP Help and exo-open.
 
Old 09-25-2016, 04:06 PM   #9
ljb643
Member
 
Registered: Nov 2003
Posts: 448

Original Poster
Rep: Reputation: Disabled
One more followup: Turns out the underlying cause was (1) some old files in my ~/.local/share/mime/packages directory - perhaps from a 2013 update to firefox, lightning, or seamonkey; and (2) running update-mime-database after installing Slackware-14.2. This created some weird entries in ~/.local/share/mime/mime.cache from those package files, which overrode the system-wide MIME type for some HTML files.

I removed the junk from ~/.local/share/mime/packages, reran update-mime-database, and now it all works as it should without those additional MIME type assocations. "xdg-mime query filetype" now just returns text/html for all the files as it should, and GIMP Help works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Automount fails with "key "xxxx" not found in map source(s)" thealmightyos Linux - General 2 12-03-2015 09:26 AM
[SOLVED] Mutt + gpg decryption fails, "application/pgp-encrypted is unsupported" iwtbf Linux - Software 0 02-10-2015 12:44 AM
[SOLVED] "C preprocessor "/lib/cpp" fails sanity check" every single time. masmddr Linux - Software 3 08-03-2010 10:37 AM
glibc 2.9 "make check" fails on rt/tst-cputimer with "timer sig[12] invoked to soon" shachter Linux - Software 2 02-14-2009 01:24 PM
What's the difference between "Registered User" and "Member"? zahadumy LQ Suggestions & Feedback 4 12-04-2005 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration