From: Dana Jansens Date: Thu, 31 Jul 2003 16:42:47 +0000 (+0000) Subject: only load the session from file if a file was provided X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e5afb0db59cdeaa35ae2f67cf40589bc6d197022;p=chaz%2Fopenbox only load the session from file if a file was provided --- diff --git a/openbox/openbox.c b/openbox/openbox.c index 62b08db7..b5fde858 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -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