]> Dogcows Code - chaz/openbox/commitdiff
only load the session from file if a file was provided
authorDana Jansens <danakj@orodu.net>
Thu, 31 Jul 2003 16:42:47 +0000 (16:42 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 Jul 2003 16:42:47 +0000 (16:42 +0000)
openbox/openbox.c

index 62b08db7e5ef73977e210d9de47cf1be7b6af098..b5fde8582e4dbd4545fd9398d101bd67ba7da3dd 100644 (file)
@@ -134,7 +134,8 @@ int main(int argc, char **argv)
     if (fcntl(ConnectionNumber(ob_display), F_SETFD, 1) == -1)
         exit_with_error("Failed to set display as close-on-exec.");
 
-    session_load(sm_save_file);
+    if (sm_save_file)
+        session_load(sm_save_file);
     session_startup(argc, argv);
 
 #ifdef USE_LIBSN
This page took 0.025151 seconds and 4 git commands to generate.