Bug 343673 - KDEInit could not launch </usr/bin/kate>
Summary: KDEInit could not launch </usr/bin/kate>
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.2.0
Platform: Arch Linux Linux
: NOR grave
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
: 337889 344838 349306 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-02 02:12 UTC by Alexander Nestorov
Modified: 2016-07-21 18:37 UTC (History)
21 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The ouput of the plasmashell during the procedure described (7.41 KB, text/plain)
2015-02-18 13:10 UTC, David Kahles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Nestorov 2015-02-02 02:12:20 UTC
First of all, I was going to report this in "Kate" category, but I saw the last version there is 3.14, which seems to be fairly old compared to KF5, so I'm reporting this here, please move to a more accurate category if any.

Dolphin/Plasma/KDE (god knows what!) is telling me that it could not launch Kate (actually, it was launched already) when I close a tab in Kate.

Video: http://youtu.be/LZoGQtciAr0

Reproducible: Always
Comment 1 Alexander Nestorov 2015-02-03 10:01:18 UTC
I just noticed that if I open a file with "right click -> open with -> Kate" from Dolphin, Dolphin will freeze until I close the file I have opened.

I'm escalating this to grave because this is a major bug. Something is badly broken.
Comment 2 Sam Albuquerque 2015-02-04 16:55:02 UTC
Dolphin is fine when the first file is opened with Kate. The issue happens only when you try to open an additional file. Closing the tab unfreezes dolphin but launches the KDEINIT error popup.

I'm using Kate 5.0 with KDE Frameworks 5.6.0 on Slackware
Comment 3 Alex meca 2015-02-04 20:47:28 UTC
Yes, I confirm the same problem. In addition, I can not select text with the mouse by clicking and dragging up. I only can select text contained in the window, not full text.
I'm using Kate 5.0 with KDE Frameworks 5.6.0 on Archlinux
Comment 4 Daniele 2015-02-09 11:35:19 UTC
+1 on opensuse 13.2 and plasma 5.2
Comment 5 Daniele 2015-02-10 08:54:19 UTC
The same happens with kmail that will freeze if I open an attachment and kate launches a second tab.
KWrite uses katepart but is not affected as it does not handle more than one document per session.
Comment 6 David Kahles 2015-02-18 13:10:03 UTC
Created attachment 91152 [details]
The ouput of the plasmashell during the procedure described
Comment 7 David Kahles 2015-02-18 13:11:36 UTC
I noticed a similar problem with the application menu of the Plasmashell when trying to launch KSysGuard (I think it's called "kickoff", I'm not so familiar with the names). I use the current (a few days old) git code on Archlinux.

Steps to reproduce:
1. Open the kickoff menu and type in "ksys"
2. Klick on the entry "KSysGuard"
3. KSysGuard will start and display it's main window, but the plasmashell freezes. This freeze does affect the kickoff menu and the whole panel.
4. Close KSysGuard. The kickoff menu will open a dialog and say "KDEInit could not launch '/usr/bin/ksysguard'". After clicking "OK", everything works and the freeze is gone.

The file attached is the ouput of the plasmashell.
Comment 8 Arjun AK 2015-03-06 17:10:13 UTC
*** Bug 344838 has been marked as a duplicate of this bug. ***
Comment 9 Martin Klapetek 2015-03-10 11:59:59 UTC
Git commit 5207e49a84145e21060f3b5beff302a437cfeccd by Martin Klapetek, on behalf of Liu Zhe.
Committed on 10/03/2015 at 11:58.
Pushed by mklapetek into branch 'Applications/15.04'.

Register with dbus to wake up KRun, and unregister then

This fixes the "KDEInit could not launch Kate" error
when opening second file with Kate

REVIEW: 122498
Related: bug 339094

M  +2    -6    kate/src/kateapp.cpp
M  +5    -2    kate/src/main.cpp

http://commits.kde.org/kate/5207e49a84145e21060f3b5beff302a437cfeccd
Comment 10 Lorenzo Bettini 2015-04-29 17:22:55 UTC
In which version is this fix available?
Comment 11 Rex Dieter 2015-04-29 18:57:49 UTC
15.04.0
Comment 12 Lorenzo Bettini 2015-04-30 06:45:56 UTC
(In reply to Rex Dieter from comment #11)
> 15.04.0

Sorry, Rex, I don't understand: is 15.04.0 a Kubuntu version or what? Because I'm using Kubuntu 15.04 and the bug is there... the current Kate version I have is 5.0.0, so I guess it's not a Kate version.

thanks in advance
Comment 13 Rex Dieter 2015-04-30 11:03:17 UTC
Kate as part of:
https://www.kde.org/announcements/announce-applications-15.04.0.php
includes the fix.
Comment 14 katalitis 2015-05-04 12:50:24 UTC
Hi, I am running Kubuntu 15.04 and the bug is still there.
Comment 15 Lorenzo Bettini 2015-05-05 06:02:10 UTC
(In reply to katalitis from comment #14)
> Hi, I am running Kubuntu 15.04 and the bug is still there.

As Rex detailed, 15.04 is not the version of Kubuntu, but the version of kde apps that contain the fix. In Kubuntu 15.04, you should use ppa:kubuntu-ppa/backports and install Plasma 5.3: the updates from this morning contain the fix for this problem.
Comment 16 katalitis 2015-05-05 09:59:44 UTC
Had already added the backports ppa, but only today's updates fixed the problem. Thanks for the answer!
Comment 17 Fedele Mantuano 2015-05-05 12:44:37 UTC
I have the same problem, also with gwenview, it cannot open any file. Before the last update I had deleted the folders .config .local .kde, and I manually restored my customizations. But now, with last upgrade, the problem returned.
Do you have suggestions?
Comment 18 Rex Dieter 2015-05-05 13:03:58 UTC
Re: comment #17

This bug is about kate (not gwenview), so your issue is something else.
Comment 19 Fedele Mantuano 2015-05-05 13:38:21 UTC
Sorry I don't know but I have also the same kate problem "KDEInit could not launch Kate".
Comment 20 Arjun AK 2015-06-19 16:23:28 UTC
*** Bug 349306 has been marked as a duplicate of this bug. ***
Comment 21 Luca Olivetti 2015-06-22 14:22:38 UTC
I have the backports ppa and I still have the problem. Just like Fedele Mantuano in comment 17, I cannot open images with gwenviev. In fact, I cannot open almost nothing in dolphin, just pdf (okular) and libreoffice documents.
Comment 22 Diego-MX 2015-08-21 18:31:16 UTC
I have this problem as well, and am having difficulty following the fix.  

Regarding Martin Klapetek's comment, I have used git and github, but not for fixing my own computer.  Could you give some advice/reference on how such projects work?

I also saw that the changes have been ported to Plasma 5.3, but these aren't solved for me?  So I think I need more. 

Thank you kindly.
Comment 23 Luca Olivetti 2015-08-21 18:48:00 UTC
In my case the problem was caused by a broken kdewallet, see bug #349531
Comment 24 Diego-MX 2015-08-21 19:31:09 UTC
Nuking ~/.kde folder.  No solution still.
Comment 25 Tristan Miller 2015-10-02 15:07:07 UTC
Possibly related: Bug 353454, in which I get the "KDEInit could not launch..." error message when running a shell script which invokes KWrite (but not when invoking KWrite directly).
Comment 26 Alexis Kauffmann 2016-03-31 13:01:34 UTC
Problem is happening here also, Debian 8.3, KDE 4.14.2-2. It happens only when I try open a file with kate when Dolphin is in superuser mode (kdesudo dolphin). It works fine when "normal" user mode.
Comment 27 David Faure 2016-07-21 18:37:32 UTC
*** Bug 337889 has been marked as a duplicate of this bug. ***