Bug 373478

Summary: Dolphin does not run if launched via sudo
Product: [Applications] dolphin Reporter: Buck Shockley <darkwingbuck13>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: grave CC: elvis.angelaccio
Priority: NOR    
Version First Reported In: 16.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Buck Shockley 2016-12-09 20:23:30 UTC
Running the command 'sudo dolphin' in Konsole will print out the following:

[buck@archie ~]$ sudo dolphin
[sudo] password for buck: 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
"Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"

This is 100% reproducible. Running printed command (export $(dbus-launch)) does nothing. Opening with KDE su results in the same problem.
Comment 1 Elvis Angelaccio 2016-12-10 15:13:57 UTC
Have you tried with 'kdesu dbus-launch dolphin'?
Comment 2 Buck Shockley 2016-12-10 16:07:16 UTC
(In reply to Elvis Angelaccio from comment #1)
> Have you tried with 'kdesu dbus-launch dolphin'?

Yes, that command works.