projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36056a6
)
only load the session from file if a file was provided
author
Dana Jansens
<danakj@orodu.net>
Thu, 31 Jul 2003 16:42:47 +0000
(16:42 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 31 Jul 2003 16:42:47 +0000
(16:42 +0000)
openbox/openbox.c
patch
|
blob
|
history
diff --git
a/openbox/openbox.c
b/openbox/openbox.c
index
62b08db
..
b5fde85
100644
(file)
--- 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