Bug 163768

Summary: When i click on a text file, the message "KDEInit could not launch '/usr/lib/kde4/bin/kate'" appears although kate succesfuly launches
Product: [Frameworks and Libraries] kdelibs Reporter: Haris Kouzinopoulos <kouzinopoulos>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: asklemet
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Haris Kouzinopoulos 2008-06-11 09:54:06 UTC
Version:            (using Devel)
Installed from:    Compiled sources

I am not sure if this a dolphin problem or anything else, it just gets annoying having to click ok on a popup after each click on a text file.
Comment 1 Christophe Marin 2008-06-11 10:45:50 UTC

*** This bug has been marked as a duplicate of 75492 ***
Comment 2 Michael Pyne 2008-06-12 01:41:09 UTC
I don't think this is a duplicate of the issue in bug 75492.  This is apparently Dolphin-specific (although I'm sure root cause will will be kdelibs somewhere), and differs in the that program does successfully launch.

Haris, is this *just* with kate or does e.g. clicking on an image give you an error about gwenview?  And does kate actually exist in /usr/lib/kde4/bin/kate ?
Comment 3 Haris Kouzinopoulos 2008-06-12 10:08:49 UTC
It seems to happen only with kate. The kate executable does exist in that location:

ls -al /usr/lib/kde4/bin/kate
-rwxr-xr-x 1 root root 3164 2008-06-05 21:36 /usr/lib/kde4/bin/kate
Comment 4 David Faure 2008-07-01 20:26:26 UTC
The question is, which kate.desktop file is being used, and what does it say (especially the X-DBUS-StartupType line). Check ~/.kde and ~/.local for a local kate.desktop override.
Comment 5 Christophe Marin 2008-07-04 18:59:46 UTC
*** Bug 165729 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Kuhl 2008-07-11 10:51:11 UTC
I run also into this.
Comment 7 Allen Winter 2008-07-11 15:21:20 UTC
I recently saw a posting about this .. I think on the kde-redhat users group list.

The poster said remove the %U from a kate desktop file fixed the problem.
But I didn't try.

Just reporting as a possible solution to explore.
Comment 8 Andreas Kuhl 2008-07-11 16:29:14 UTC
Wow, that really did the trick! I did not open Kate via a desktop icon, but directly by clicking on a text file. I edited the properties for text files and edited the associated Kate entry and removed - as you proposed - the %U parameter.

Now the errormessage no longer appears when opening and closing textfiles with Kate. Great!
Comment 9 David Faure 2008-07-12 01:19:51 UTC
That's just a side effect, the problem isn't %U, but a wrong key in the desktop file. By modifying it you're creating a local copy of it, which doesn't have that wrong key. Both problems are fixed, see Bug 157853.

*** This bug has been marked as a duplicate of 157853 ***