summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openbox.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openbox.cc b/src/openbox.cc
index b44a1861..3232827f 100644
--- a/src/openbox.cc
+++ b/src/openbox.cc
@@ -139,8 +139,9 @@ Openbox::Openbox(int argc, char **argv)
python_exec(SCRIPTDIR"/config.py"); // load openbox config values
// run all of the python scripts
python_exec(SCRIPTDIR"/builtins.py"); // builtin callbacks
- // run the user's script
- python_exec(_scriptfilepath.c_str());
+ // run the user's script or the system defaults if that fails
+ if (!python_exec(_scriptfilepath.c_str()))
+ python_exec(SCRIPTDIR"/defaults.py"); // system default bahaviors
// initialize all the screens
OBScreen *screen;