From e5afb0db59cdeaa35ae2f67cf40589bc6d197022 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 31 Jul 2003 16:42:47 +0000 Subject: [PATCH] only load the session from file if a file was provided --- openbox/openbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2