Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE Plasma 5: KDEInit could not launch '/usr/bin/kwrite'
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
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1769
Location: United Kingdom

PostPosted: Thu Feb 04, 2016 3:33 pm    Post subject: KDE Plasma 5: KDEInit could not launch '/usr/bin/kwrite' Reply with quote

Ever since I upgraded from KDE 4 to KDE Frameworks 5/Plasma 5/Applications 5 on my Compal NBLB2 laptop (~amd64) I'm experiencing a minor, albeit irritating, problem when I exit from KWrite. I don't have a problem with Kate or other applications; so far I have only experienced it with KWrite.

If I open a text file by double-clicking on it in a Dolphin window and later exit KWrite, a window with the title 'Sorry - Dolphin' then pops up with the following error message:

KDEInit could not launch '/usr/bin/kwrite'

If I launch KWrite from the Application Launcher's menu, the same thing happens (although the pop-up window's title is 'Sorry - Plasma' instead of 'Sorry - Dolphin').

However, if I launch KWrite from the command line in a Konsole window, the problem does not occur.

If I right-click on the KWrite icon in the Application Launcher's menu and perform the following steps then the pop-up window no longer appears when I exit KWrite:

1. Select 'Edit Application...'
2. Click on 'Application' tab
3. Click on 'Advanced Options'
4. Change 'D-Bus registration' from 'Multiple Instances' to 'Run Until Finished'

The problem looks similar to one reported for previous versions of KDE in KDE Bugtracking System Bug 75492 - KDEInit could not launch <program>, which was supposedly fixed in 2010.

My installation is hopefully up-to-date ('emerge -uvDN --with-bdeps=y world' and 'emerge --depclean' both ran to completion and reported no errors) and the latest versions in the main Portage tree are installed:

Code:
fitzcarraldo@meshedgedx ~ $ eix -I plasma-meta
[I] kde-plasma/plasma-meta
     Available versions:  (5) (~)5.4.3 (~)5.5.2 (~)5.5.3 (~)5.5.4
       {bluetooth +display-manager gtk mediacenter networkmanager pulseaudio +sddm sdk +wallpapers}
     Installed versions:  5.5.4(5)(21:49:34 01/02/16)(bluetooth display-manager gtk networkmanager pulseaudio sddm wallpapers -mediacenter -sdk)
     Homepage:            https://www.kde.org/workspaces/plasmadesktop/
     Description:         Merge this to pull in all Plasma 5 packages

fitzcarraldo@meshedgedx ~ $ eix -I kde-apps-meta
[I] kde-apps/kde-apps-meta
     Available versions:  (5) (~)15.08.3-r3
       {accessibility minimal nls pim sdk}
     Installed versions:  15.08.3-r3(5)(00:54:25 04/02/16)(accessibility nls -minimal -pim -sdk)
     Homepage:            https://www.kde.org/
     Description:         Meta package for the KDE Applications collection


Is anyone else experiencing this behaviour in KDE Plasma 5, or has anyone experienced it and found the solution?
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
engraver
n00b
n00b


Joined: 27 Mar 2016
Posts: 2

PostPosted: Thu Apr 21, 2016 9:19 pm    Post subject: Reply with quote

Here is the description of problem: https://forums.gentoo.org/viewtopic-t-1042858.html, https://bugs.gentoo.org/show_bug.cgi?id=579546

In a few words, prelink affected dbus libraries and the following solves it:
Code:
# prelink -u /usr/lib64/libdbusmenu-qt.so.*
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1769
Location: United Kingdom

PostPosted: Wed Jul 06, 2016 2:50 am    Post subject: Reply with quote

engraver wrote:
Here is the description of problem: https://forums.gentoo.org/viewtopic-t-1042858.html, https://bugs.gentoo.org/show_bug.cgi?id=579546

In a few words, prelink affected dbus libraries and the following solves it:
Code:
# prelink -u /usr/lib64/libdbusmenu-qt.so.*

I am not using prelink:

Code:
meshedgedx fitzcarraldo # eix prelink
* sec-policy/selinux-prelink
     Available versions:  2.20141203-r10 2.20151208-r1 2.20151208-r2 (~)2.20151208-r3 (~)2.20151208-r4 **9999
     Homepage:            https://wiki.gentoo.org/wiki/Project:SELinux
     Description:         SELinux policy for prelink

* sys-devel/prelink
     Available versions:  20130503 (~)20130503-r1 (~)20151030 {doc selinux}
     Homepage:            https://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/ https://people.redhat.com/jakub/prelink
     Description:         Modifies ELFs to avoid runtime symbol resolutions resulting in faster load times

Found 2 matches

I'm currently using plasma-meta-5.7.0, and the problem still occurs.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 248
Location: Berkeley, California

PostPosted: Wed Jul 20, 2016 6:58 pm    Post subject: Reply with quote

I just ran the upgrade from base on https://wiki.gentoo.org/wiki/KDE/Plasma_5_upgrade

I have plasma-meta-5.5.5

same issue as you, among several others.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7172
Location: Austria

PostPosted: Wed Jul 20, 2016 7:07 pm    Post subject: Reply with quote

Did you go through the Plasma-4-to-5 upgrade guide troubleshooting section already? Do you have a valid consolekit session, dbus in default runlevel?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1769
Location: United Kingdom

PostPosted: Thu Jul 21, 2016 11:44 am    Post subject: Reply with quote

genstorm wrote:
Did you go through the Plasma-4-to-5 upgrade guide troubleshooting section already? Do you have a valid consolekit session, dbus in default runlevel?

In my case, to answer your three questions: yes, yes and yes. As I mentioned in my first post, it only happens with KWrite.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7172
Location: Austria

PostPosted: Thu Jul 21, 2016 11:46 am    Post subject: Reply with quote

It's really strange. New user, same problem?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Mon Aug 01, 2016 4:30 pm    Post subject: Reply with quote

I have the same problem.

I am trying to launch TexMaker from the K-Menu.

Code:
KDEInit could not launch 'ksystraycmd':
Could not open library 'libkdeinit5_ksystraycmd'.
Cannot load library libkdeinit5_ksystraycmd: (libkdeinit5_ksystraycmd: cannot open shared object file: No such file or directory)


I can launch TexMaker from the Konsole though.

Same problem when trying top launch mpv from Dolphin by right-clicking a video file and chossing mpv

Code:
KDEInit could not launch 'ksystraycmd':
Could not open library 'libkdeinit5_ksystraycmd'.
Cannot load library libkdeinit5_ksystraycmd: (libkdeinit5_ksystraycmd: cannot open shared object file: No such file or directory)


I have not found or tried a solution yet (I hesitate that prelining is a permanent solution). Searching .....
_________________
/Phil
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22472
Location: here

PostPosted: Tue Aug 02, 2016 7:22 am    Post subject: Reply with quote

philip wrote:
I have not found or tried a solution yet (I hesitate that prelining is a permanent solution). Searching .....

Can help
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Tue Aug 02, 2016 12:07 pm    Post subject: Reply with quote

That helped, thank you!
_________________
/Phil
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7172
Location: Austria

PostPosted: Tue Aug 02, 2016 9:07 pm    Post subject: Reply with quote

I'm wondering why it was enabled in the first place, it sure is not the default.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1769
Location: United Kingdom

PostPosted: Thu Aug 04, 2016 1:17 am    Post subject: Reply with quote

Getting back to the problem in the first post in this thread, I wonder if the problem is similar to KDE bug 354179, and especially Comment 7?

I don't have access to my Compal NBLB2 laptop running Plasma 5.7.3 at the moment, but look what happens after I use Plasma 5.6.5 (the current version in the Gentoo Stable Branch) on my Clevo W230SS laptop to change the D-Bus registration of KWrite:

I right-clicked on the KWrite icon in the Application Launcher menu and selected 'Edit Application...' > 'Application' > 'Advanced Options', and I changed the entry for 'D-Bus registration' from 'Multiple Instances' to 'None'. Then I wanted to check the contents of the .desktop file to see if the edit had been performed, and was surprised to find two desktop files for KWrite:

Code:
fitzcarraldo@clevow230ss ~ $ locate org.kde.kwrite.desktop
/home/fitzcarraldo/.local/share/applications/org.kde.kwrite.desktop
/usr/share/applications/org.kde.kwrite.desktop


So I checked the contents of the two files:

Code:
fitzcarraldo@clevow230ss ~ $ grep -i dbus /home/fitzcarraldo/.local/share/applications/org.kde.kwrite.desktop
X-DBUS-ServiceName=org.kde.kwrite
X-DBUS-StartupType=none
fitzcarraldo@clevow230ss ~ $ grep -i dbus /usr/share/applications/org.kde.kwrite.desktop
X-DBUS-StartupType=Multi


Notice that the deprecated file ~/.local/share/applications/org.kde.kwrite.desktop was changed, rather than the Plasma 5 file /usr/share/applications/org.kde.kwrite.desktop

Now if I change the D-Bus registration via the Plasma 5 GUI back to 'Multiple Instances':

Code:
fitzcarraldo@clevow230ss ~ $ grep -i dbus ~/.local/share/applications/org.kde.kwrite.desktop
X-DBUS-ServiceName=org.kde.kwrite
X-DBUS-StartupType=multi


Code:
fitzcarraldo@clevow230ss ~ $ grep -i dbus /usr/share/applications/org.kde.kwrite.desktop
X-DBUS-StartupType=Multi
X-DBUS-ServiceName=org.kde.kwrite

_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7172
Location: Austria

PostPosted: Thu Aug 04, 2016 6:29 am    Post subject: Reply with quote

Please note that the link above contains a different solution.

Fitzcarraldo wrote:
Notice that the deprecated file ~/.local/share/applications/org.kde.kwrite.desktop was changed, rather than the Plasma 5 file /usr/share/applications/org.kde.kwrite.desktop

Why do you think that's deprecated? Of course /usr content won't change through your user.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1769
Location: United Kingdom

PostPosted: Thu Aug 04, 2016 10:54 am    Post subject: Reply with quote

genstorm wrote:
Please note that the link above contains a different solution.

I know. That's why I wrote "similar to".

genstorm wrote:
Why do you think that's deprecated?

Because of what David Faure wrote in Comment 7 to that bug report:

David Faure on 2015-12-28 23:07:34 UTC wrote:

Git commit c4ebd9b537d749e5533ecaff5631debab4827760 by David Faure.
Committed on 28/12/2015 at 23:07.
Pushed by dfaure into branch 'master'.

Save settings into ~/.config rather than deprecated ~/.local/share/apps/

M +1 -1 keditfiletype/mimetypedata.cpp

http://commits.kde.org/kde-cli-tools/c4ebd9b537d749e5533ecaff5631debab4827760

genstorm wrote:
Of course /usr content won't change through your user.

I know.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7172
Location: Austria

PostPosted: Thu Aug 04, 2016 10:58 am    Post subject: Reply with quote

You see though, from my quote, where there was the misunderstanding? ;)
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1769
Location: United Kingdom

PostPosted: Thu Aug 04, 2016 11:24 am    Post subject: Reply with quote

I do see.

I assume Plasma 5.6.5 should be using ~/.config/org.kde.kwrite.desktop instead of ~/.local/share/applications/org.kde.kwrite.desktop, so there appears to be something wrong with 5.6.5 (at least in Gentoo) regarding where it expects configuration files to be (see also [Work-around] Plasma 5.6.5 does not save File Associations for another manifestation of that). When I have the opportunity I will check what is happening in Plasma 5.7.3 on my laptop running Gentoo Testing.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1769
Location: United Kingdom

PostPosted: Fri Aug 05, 2016 9:58 am    Post subject: Reply with quote

OK, I have now been able to use my Compal NBLB2 laptop which has Gentoo Testing installed. I merged world to upgrade from Plasma 5.7.2 to 5.7.3 then did the following:

Code:
meshedgedx fitzcarraldo # updatedb
meshedgedx fitzcarraldo # locate .desktop | grep kwrite
/home/fitzcarraldo/.local/share/RecentDocuments/kwrite.txt.desktop
/home/fitzcarraldo/.local/share/applications/kde4-kwrite.desktop
/usr/share/applications/org.kde.kwrite.desktop
meshedgedx fitzcarraldo # rm /home/fitzcarraldo/.local/share/applications/kde4-kwrite.desktop

Then I launched Dolphin and double-clicked on a text file but Plasma tried to launch Emacsclient. For some reason the upgrade to Plasma 5.7.3 had changed the file associations. I therefore used System Settings > Applications > File Associations to change the association back to KWrite and tried again...

...and the problem no longer occurs. I can now double-click on a text file in Dolphin and, when I exit from KWrite, no pop-up window appears any more.

I should have tried to launch KWrite from Dolphin before deleting /home/fitzcarraldo/.local/share/applications/kde4-kwrite.desktop, just to be sure what fixed the problem.

So, that is one less Plasma 5 hassle with which I have to contend. Next on my list is to find out why Plasma 5 will not save the settings I make using widgets such as Networks (kde-plasma/plasma-nm) and Redshift Control, but presumably that has a different cause.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1337
Location: Mississippi USA

PostPosted: Sun Dec 11, 2016 7:07 am    Post subject: Reply with quote

I had this problem as well. Just in case this will help someone else, this is what I had to remove.

Code:
/home/<user>/.local/share/applications/kde4/kwrite.desktop


Once I did that, it stopped popping up that pesky message.

The way I found it is this. I used the locate command mentioned above. I then did a ls on each file and removed the oldest one, figuring the older one would be the likely one that was out of date.
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
9TBs of hard drive space using LVM
Cooler Master HAF-932 Case
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