- don't change permission .ICEauthority by sudo KDE programs.
This commit is contained in:
parent
077bc82ff3
commit
2fc8ea0977
|
@ -0,0 +1,15 @@
|
|||
--- 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()))
|
|
@ -22,9 +22,9 @@
|
|||
|
||||
Name: kdelibs
|
||||
Summary: K Desktop Environment - Libraries
|
||||
Epoch: 6
|
||||
Epoch: 6
|
||||
Version: 3.5.6
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
|
||||
License: LGPL
|
||||
Url: http://www.kde.org/
|
||||
|
@ -50,6 +50,7 @@ Patch38: kdelibs-3.5.2-cupsdconf2-group.patch
|
|||
Patch39: kdelibs-3.5.4-kabc-make.patch
|
||||
Patch40: kdelibs-3.5.4-kdeprint-utf8.patch
|
||||
Patch41: kdelibs-3.5.6-utempter.patch
|
||||
Patch42: kdelibs-3.5.7-ICEauthority.patch
|
||||
|
||||
# use /etc/kde in addition to /usr/share/config, borrowed from debian
|
||||
Patch104: kdelibs-3.5.5-kstandarddirs.patch
|
||||
|
@ -189,6 +190,7 @@ format for easy browsing
|
|||
%patch39 -p1 -b .kabc-make
|
||||
%patch40 -p1 -b .kdeprint-utf8
|
||||
%patch41 -p1 -b .utempter
|
||||
%patch42 -p1 -b .ICEauthority
|
||||
|
||||
%patch104 -p1 -b .kstandarddirs
|
||||
|
||||
|
@ -459,6 +461,9 @@ touch --no-create %{_datadir}/icons/crystalsvg 2> /dev/null || :
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu May 24 2007 Than Ngo <than@redhat.com> 3.5.6-10.fc7
|
||||
- don't change permission .ICEauthority by sudo KDE programs
|
||||
|
||||
* Thu May 16 2007 Rex Dieter <rdieter[AT]fedorproject.org> - 6:3.5.6-9
|
||||
- make qtdocdir handling robust
|
||||
- kde_settings=1
|
||||
|
|
Loading…
Reference in New Issue