load a global defaults.py if the user.py isnt loaded

This commit is contained in:
Dana Jansens 2003-01-10 22:42:45 +00:00
parent 8d52c2b114
commit d12e655d45

View file

@ -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;