openbsd-ports/x11/kde/base3/patches/patch-kdesu_kdesu_kdesu_cpp
2006-10-12 23:12:18 +00:00

14 lines
536 B
Plaintext

$OpenBSD: patch-kdesu_kdesu_kdesu_cpp,v 1.10 2006/10/12 23:12:18 espie Exp $
--- kdesu/kdesu/kdesu.cpp.orig Mon May 22 20:13:07 2006
+++ kdesu/kdesu/kdesu.cpp Sun May 28 23:11:24 2006
@@ -113,7 +113,8 @@ int main(int argc, char *argv[])
unsetenv( "SESSION_MANAGER" );
KApplication app;
// but propagate it to the started app
- setenv( "SESSION_MANAGER", session_manager.data(), 1 );
+ if (!session_manager.isNull())
+ setenv( "SESSION_MANAGER", session_manager.data(), 1 );
{
KStartupInfoId id;