Bugzilla – Bug 514056
dbus hangs when kfmclient is run by root
Last modified: 2012-11-16 19:24:45 UTC
When I run kfmclient under normal client it works: [prusnak@leira 0 ~] kfmclient openURL http://example.com opens the webpage in browser. When I switch to root and perform the same task it stalls: [root@leira 0 ~] kfmclient openURL http://example.com
Created attachment 298733 [details] strace output
Works for me on KDE4.2.4 (:KDE42 repo) with 'su -' to change to root, doesn't when using only 'su' how did you switch to root? 'su -' or plain 'su'? Using only 'su' won't allow any kde app to start, but it is also wrong to switch to root only with 'su' as it preservs the env variables if I am not mistaken (something you don't really want, this will make root the owner of your .kde settings...) Sounds to me like https://bugzilla.novell.com/show_bug.cgi?id=502058
*** Bug 502058 has been marked as a duplicate of this bug. ***
According to strace it hangs in dbus.
This might be related to the following upstream bugs: https://bugs.kde.org/show_bug.cgi?id=199209 https://bugs.kde.org/show_bug.cgi?id=165268
*** Bug 487060 has been marked as a duplicate of this bug. ***
-> Upstream.
*** Bug 656210 has been marked as a duplicate of this bug. ***
Hold on, how come I didn't get this behaviour until 11.4 M4 and never once before? If it was an upstream bug, shouldn't it have shown up before now, and in every release since it was reported?
Created attachment 411146 [details] List of launch errors given by the system when starting applications as a root user. Bug is still present in 11.4 Milestone 6. I have attached launch feedback.
*** Bug 674745 has been marked as a duplicate of this bug. ***
I've mentioned this bug report here: https://bugs.kde.org/show_bug.cgi?id=199209
This bug has also been cited upstream here: https://bugs.kde.org/show_bug.cgi?id=277249
This is not upstream. The problem is still occuring, and the related KDE.org bugreports indicate it is our problem. This is not fixed, and it is not upstream.
I have tested this issue against 12.2 Milestone 2 and the problem is ongoing. Can anybody else confirm?
Fixed platform setting to 12.2
12.2 Milestone 3 still returns "session bus not found" to the user when issuing commands to kfmclient as root.
Still present in 12.2 RC2.
in suse 12.2 and kde 4.9.3 in user session i do: su kfmclient openURL http://google.com klauncher(24105) kdemain: No DBUS session-bus found. Check if you have started the DBUS server. kdeinit4: Communication error with launcher. Exiting! kfmclient(24101)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 209 , expecting version 210 or higher. kfmclient(24101)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 209 , expecting version 210 or higher. kfmclient(24101): No ksycoca4 database available! kfmclient(24101)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "KUriFilter/Plugin" not found kfmclient(24101): Session bus not found Abandon so that fail if i do su - kfmclient openURL http://google.com Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) kbuildsycoca4 running... that work
for starting a kde graphic program, it should be started with su - or kdesu