all repos — openbox @ d12e655d45a3e760fa39b47ae62cbebe0ad52350

openbox fork - make it a bit more like ryudo

load a global defaults.py if the user.py isnt loaded
Dana Jansens danakj@orodu.net
commit

d12e655d45a3e760fa39b47ae62cbebe0ad52350

parent

8d52c2b11466ad672435a0478135ef7d481fabb1

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M src/openbox.ccsrc/openbox.cc

@@ -139,8 +139,9 @@ // load config values

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;