only load the session from file if a file was provided
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
openbox/openbox.c
→
openbox/openbox.c
@@ -134,7 +134,8 @@ exit_with_error("Failed to open the display.");
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