Version: (using KDE KDE 3.5.3) Installed from: Compiled From Sources Compiler: gcc-4.1.1 OS: Linux When running a KDE app (fe kedit or kwrite) sudo from a gnome-terminal in a gnome session (not in KDE) .ICEauthority of the user gets chown-ed root. This prevents later xsessions for this user because .ICEauthority cannot be read. .ICEauthority doesn't get chowned root if any K-app is started by the user first. The behaviour reappears as soon as all K-apps are terminated and root starts a new one.
You might be able to work around this by using kdesu, FWIW.
Ubuntu patched it, wouldn't harm in include in the 3.5 branch i suppose: +--- kdelibs/kdecore/kapplication.cpp 2006-08-01 16:58:45.000000000 +0000 ++++ kdelibs/kdecore/kapplication.cpp 2006-08-01 16:58:58.000000000 +0000 +@@ -774,6 +774,14 @@ + + void KApplication::init(bool GUIenabled) + { ++ // stop KDE programs run with sudo changing permissions on ~/.kde and /.ICEauthority ++ int uid = getuid(); ++ if (uid == 0) { ++ setenv("ICEAUTHORITY", "/root/.ICEauthority", 0); ++ setenv("KDEROOTHOME", "/root/.kde", 0); ++ setenv("HOME", "/root", 1); ++ } ++ + d->guiEnabled = GUIenabled; + if ((getuid() != geteuid()) || + (getgid() != getegid()))
Hello, Can you still reproduce the bug with the latest KDE 4 release? Thanks.
Marked this bug as "waitingforinfo" until someone can give some more informations about the status of the bug on KDE 4. Thanks.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!