View previous topic :: View next topic |
Author |
Message |
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Thu Feb 04, 2016 3:33 pm Post subject: KDE Plasma 5: KDEInit could not launch '/usr/bin/kwrite' |
|
|
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, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
engraver n00b
Joined: 27 Mar 2016 Posts: 2
|
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Wed Jul 06, 2016 2:50 am Post subject: |
|
|
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, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
johnny99 Apprentice
Joined: 24 Oct 2005 Posts: 249 Location: Berkeley, California
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Wed Jul 20, 2016 7:07 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Thu Jul 21, 2016 11:44 am Post subject: |
|
|
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, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Thu Jul 21, 2016 11:46 am Post subject: |
|
|
It's really strange. New user, same problem? |
|
Back to top |
|
|
philip Guru
Joined: 10 Jun 2003 Posts: 535 Location: Sweden
|
Posted: Mon Aug 01, 2016 4:30 pm Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30842 Location: here
|
Posted: Tue Aug 02, 2016 7:22 am Post subject: |
|
|
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 |
|
|
philip Guru
Joined: 10 Jun 2003 Posts: 535 Location: Sweden
|
Posted: Tue Aug 02, 2016 12:07 pm Post subject: |
|
|
That helped, thank you! _________________ /Phil |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Tue Aug 02, 2016 9:07 pm Post subject: |
|
|
I'm wondering why it was enabled in the first place, it sure is not the default. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Thu Aug 04, 2016 1:17 am Post subject: |
|
|
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, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Thu Aug 04, 2016 6:29 am Post subject: |
|
|
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. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Thu Aug 04, 2016 10:54 am Post subject: |
|
|
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:
genstorm wrote: | Of course /usr content won't change through your user. |
I know. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8933
|
Posted: Thu Aug 04, 2016 10:58 am Post subject: |
|
|
You see though, from my quote, where there was the misunderstanding? |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Thu Aug 04, 2016 11:24 am Post subject: |
|
|
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, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Fri Aug 05, 2016 9:58 am Post subject: |
|
|
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, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
dalek Veteran
Joined: 19 Sep 2003 Posts: 1353 Location: Mississippi USA
|
Posted: Sun Dec 11, 2016 7:07 am Post subject: |
|
|
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
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case |
|
Back to top |
|
|
|