aboutsummaryrefslogtreecommitdiffstats
path: root/x11/kde4-runtime/files/patch-kdesu_kdesu-kdesu.cpp
blob: a289f1d1c74ed46b4304ad2281bbe8c6976d4d85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- kdesu/kdesu/kdesu.cpp   2006/04/12 13:14:22 529044
+++ kdesu/kdesu/kdesu.cpp   2007/11/13 15:10:52 736127
@@ -113,7 +113,10 @@
     unsetenv( "SESSION_MANAGER" );
     KApplication app;
     // but propagate it to the started app
-    setenv( "SESSION_MANAGER", session_manager.data(), 1 );
+    if (session_manager.data())
+    {
+        setenv( "SESSION_MANAGER", session_manager.data(), 1 );
+    }
     
     {
         KStartupInfoId id;