- include experimental libtool patches * Mon Jun 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.7-2 - kdesu: sudo support (kde bug #20914), Requires(hint): sudo * Wed Jun 06 2007 Than Ngo <than@redhat.com> - 6:3.5.7-0.1.fc7 - 3.5.7
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()))
|