16 lines
497 B
Diff
16 lines
497 B
Diff
--- kdelibs-3.5.7/kdecore/kapplication.cpp.orig 2007-05-20 22:04:53.000000000 +0200
|
|
+++ kdelibs-3.5.7/kdecore/kapplication.cpp 2007-05-20 22:38:53.000000000 +0200
|
|
@@ -774,6 +774,12 @@
|
|
|
|
void KApplication::init(bool GUIenabled)
|
|
{
|
|
+ if (getuid() == 0) {
|
|
+ setenv("ICEAUTHORITY", "/root/.ICEauthority", 0);
|
|
+ setenv("KDEROOTHOME", "/root/.kde", 0);
|
|
+ setenv("HOME", "/root", 1);
|
|
+ }
|
|
+
|
|
d->guiEnabled = GUIenabled;
|
|
if ((getuid() != geteuid()) ||
|
|
(getgid() != getegid()))
|