summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-31 16:42:47 +0000
committerDana Jansens <danakj@orodu.net>2003-07-31 16:42:47 +0000
commite5afb0db59cdeaa35ae2f67cf40589bc6d197022 (patch)
tree115e0a8d0897e780789268dc97d559b985b8f837 /openbox/openbox.c
parent36056a69d75310eb6405d0fd668627eb9f6489bd (diff)
only load the session from file if a file was provided
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c3
1 files changed, 2 insertions, 1 deletions
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