Bug 142831 - broken error message while opening unexisting external tool
Summary: broken error message while opening unexisting external tool
Status: RESOLVED UNMAINTAINED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-11 14:46 UTC by Olivier Vitrat
Modified: 2012-10-19 13:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Vitrat 2007-03-11 14:46:23 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Debian testing/unstable Packages

This has been reported in Debian BTS at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357812

This cosmetic error occurs when I want to use the GIMP as an external 
tool, without having it installed. I right-click on a picture, choose
External Tools -> The GIMP. An error message pops up, saying "Could not 
find the program 'The'" Obviously, this should be: "Could not find the
program 'The GIMP'"

Gwenview passes the full name to kdelibs (KRun, specifially). KRun is 
the origin of the error dialog, so the problem must be in there 
somewhere.
Comment 1 Angelo Naselli 2007-03-12 11:13:33 UTC
To avoid that can you please check into settings->external tools
and change the gimp entry from "gimp-remote -n %F" to
"gimp-remote %F" and let us know if it's ok?

TIA
	Angelo
Comment 2 Mathijs Romans 2007-03-13 10:42:31 UTC
I am the original submitter of this bug and tried the above suggestion. It does not solve this (minor) bug. This bug occurs if the program gimp-remote cannot be found (to reproduce: move this file away from /usr/bin). The error message is then incomplete as described above.

I found a workaround by adding quotes: in settings->external tools change in the The Gimp entry the Name: The GIMP into Name: "The GIMP". Now the error message says :"Could not find the program 'The GIMP'", which is correct. So the solution would be that either gwenview should put quotes around the string "The GIMP" when it is sent to the error dialog, or the error dialog should display the full name, even if it contains a space. (I am not familiar with the technical details of how these applications work or should work.)
Comment 3 Angelo Naselli 2007-03-13 22:24:02 UTC
hmm, my workaround seems to work here (another machine) as well.

Can you please launch gwenview from a console and run extern
tools -> The gimp. After that read the lines under gwenview and
paste them here.

For instance:
[angelo@gandalf ~]$ gwenview
QInputContext: cannot create input context for non-toplevel widgets
QInputContext: cannot create input context for non-toplevel widgets
/bin/sh: gimp-remote-2.2: command not found
QInputContext: cannot create input context for non-toplevel widgets
QInputContext: cannot create input context for non-toplevel widgets
Opzione -n sconoscuta
QInputContext: cannot create input context for non-toplevel widgets
QInputContext: cannot create input context for non-toplevel widgets
This is a development version of GIMP.  Debug messages may appear here.

jpeg-load: found EXIF block (9719 bytes)

The first error showed me i had a wrong command set, after changing
it to gimp-remote I found wrong option "-n". The dialog showed
always "Could not find the program 'The'". And finally (third one)
showed it worked
Comment 4 Jekyll Wu 2012-01-03 00:07:29 UTC
Gwenview has changed a lot in KDE4. There is no "External Tools" now.