kdesu/unset-xdg-runtime-dir.diff
Fabian Vogt 3b625d6f3f - 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
2016-11-10 15:19:48 +00:00

14 lines
364 B
Diff

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