only load the session from file if a file was provided
This commit is contained in:
parent
36056a69d7
commit
e5afb0db59
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue