This forum has been archived. All content is frozen. Please use KDE Discuss instead.

dolphin with sudo problem

Tags: None
(comma "," separated)
dongfanglu
Registered Member
Posts
4
Karma
0

dolphin with sudo problem

Tue May 12, 2009 5:15 am
Before Kde update, i could use
Code:
sudo dolphin

command to explore file systems as a root. But now, when i try dolphin or konqueror as a root user, i get an "xmessage" that says

Could not start ksmserver. Check your installation.

Then, if i close the xmessage window, systems logs me out to kdm login screen. But if i ignore the message and don't touch it, everything seems and works normal. I am really confused about that and need help.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: dolphin with sudo problem

Tue May 12, 2009 5:39 am
You should not use "sudo" to launch KDE applications because it will change the permissions on your personal KDE user profile, which will cause problems later in the future.

KSMServer is the process responsible for managing the KDE session. It is likely that trying to run Dolphin as root mangles its communication with KDE session, causing KDEInit to think the session has ended, and terminating your session. ( KSMServer ensures that all applications states have been saved and they are closed before closing itself )

You could possibly try with "kdesudo" which might take steps to seperate your environment.
Please ensure the permissions on your KDE user profile are not damaged also:
Code: Select all
export ACTUALOWNER=$(id -un):$(id -gn)
export KDEPROFILEHOME=$(kde4-config --localprefix)
sudo chown -R $ACTUALOWNER $KDEPROFILEHOME

Last edited by bcooksley on Tue May 12, 2009 5:40 am, edited 1 time in total.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora