Bug 189450 - Starting programs (kfind, dolphin) in su mode does not work
Summary: Starting programs (kfind, dolphin) in su mode does not work
Status: RESOLVED UPSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-12 13:01 UTC by Unknown
Modified: 2010-03-25 09:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2009-04-12 13:01:25 UTC
Version:           unknown (using 4.2.2 (KDE 4.2.2) "release 111", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.7-9-pae

a) normal dolphin in konsole starts ok but with error messages: 
"/usr/bin/dolphin(3954)" Error in thread 3049851696 : "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(3954)" Error in thread 3049851696 : "QLocalSocket::connectToServer: Invalid name"
dolphin(3954): Attempt to use QAction "close_tab" with KXMLGUIFactory!
dolphin(3954): Attempt to use QAction "show_info_panel" with KXMLGUIFactory!
dolphin(3954): Attempt to use QAction "show_folders_panel" with KXMLGUIFactory!
dolphin(3954): Attempt to use QAction "show_terminal_panel" with KXMLGUIFactory!
dolphin(3954): Attempt to use QAction "show_places_panel" with KXMLGUIFactory!

Kfind functions ok.

b) kdesu dolphin in konsole gives no messages,starts okay, kdesu Kfind okay, too.

c) going su in konsole and starting dolphin results in no disc activity and konsole "hangs" (no further input possible, no error messages at all) The same happens with kfind.

There are probably more programs that do this, as I rarely use konsole to start windowed applications I didn't notice any other until now.
Comment 1 Unknown 2009-04-12 13:03:54 UTC
I filed this bug report after https://bugs.kde.org/show_bug.cgi?id=187985 and https://bugs.kde.org/show_bug.cgi?id=189267 both seemed to have konsole su mode as a common root circumstance.
Comment 2 Unknown 2009-12-18 13:03:09 UTC
with kde4.3 console 2.3.1 after a very fresh install on another computer :
going su and starting dolphin: 
<unknown program name>(4393)/: KUniqueApplication: Cannot find the D-Bus session server:  "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
<unknown program name>(4392)/: KUniqueApplication: Pipe closed unexpectedly.
-> program does not start

going su and starting kfind :
kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
kdeinit4: Communication error with launcher. Exiting!
-> program does start but cannot search anything, everytime I hit search the above error is posted in the konsole.

doing sudo dolphin : 
 unknown program name>(4438)/: KUniqueApplication: Cannot find the D-Bus session server:  "/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
"
<unknown program name>(4436)/: KUniqueApplication: Pipe closed unexpectedly.
-> program does not start
doing sudo kfind : 
kfind: cannot connect to X server
-> program does not start
doing sudo firefox :
Error: no display specified
-> program does not start
Comment 3 Lubos Lunak 2010-03-25 09:50:16 UTC
D-Bus problem, do not use plain su for such cases, use kdesu, su -, ssh -X root@localhost or similar.