kdelibs/kdelibs-3.5.7-ICEauthority.patch
Rex Dieter 0179c52a20 Jun 15 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.7-3
- 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
2007-06-15 18:09:56 +00:00

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()))