- Add unset-xdg-runtime-dir.diff to unset XDG_RUNTIME_DIR in processes
run with kdesu. This fixes the problem which made most kde applications (like dolphin or kate) not usable when run as another user with kdesu. kdesu worked to run those applications as root, but then, sockets were created in / . This patch also fixes the creation of those files which will be created on /tmp/runtime-<username>/ (boo#1009510). OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kdesu?expand=0&rev=106
This commit is contained in:
parent
d1c5503658
commit
3b625d6f3f
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 10 12:55:50 UTC 2016 - alarrosa@suse.com
|
||||
|
||||
- Add unset-xdg-runtime-dir.diff to unset XDG_RUNTIME_DIR in processes
|
||||
run with kdesu. This fixes the problem which made most kde applications
|
||||
(like dolphin or kate) not usable when run as another user with kdesu.
|
||||
kdesu worked to run those applications as root, but then, sockets
|
||||
were created in / . This patch also fixes the creation of those files
|
||||
which will be created on /tmp/runtime-<username>/ (boo#1009510).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 5 22:04:03 UTC 2016 - hrvoje.senjan@gmail.com
|
||||
|
||||
|
@ -41,6 +41,8 @@ Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%
|
||||
Source1: baselibs.conf
|
||||
# PATCH-FIX-OPENSUSE fpie.patch -- make kdesud compile/link with -(f)pie flags
|
||||
Patch0: fpie.patch
|
||||
# PATCH-FIX-UPSTREAM unset-xdg-runtime-dir.diff alarrosa@suse.com -- unset XDG_RUNTIME_DIR so applications run under kdesu don't try to use an inaccesible runtime dir
|
||||
Patch1: unset-xdg-runtime-dir.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -80,6 +82,7 @@ Development files.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%cmake_kf5 -d build
|
||||
|
13
unset-xdg-runtime-dir.diff
Normal file
13
unset-xdg-runtime-dir.diff
Normal file
@ -0,0 +1,13 @@
|
||||
Index: kdesu-5.26.0/src/kdesu_stub.c
|
||||
===================================================================
|
||||
--- kdesu-5.26.0.orig/src/kdesu_stub.c
|
||||
+++ kdesu-5.26.0/src/kdesu_stub.c
|
||||
@@ -258,6 +258,8 @@ int main()
|
||||
unsetenv("LC_ALL");
|
||||
}
|
||||
|
||||
+ unsetenv("XDG_RUNTIME_DIR");
|
||||
+
|
||||
/* Do we need to change uid? */
|
||||
|
||||
pw = getpwnam(params[P_USER].value);
|
Loading…
Reference in New Issue
Block a user