]> Dogcows Code - chaz/openbox/commitdiff
load a global defaults.py if the user.py isnt loaded
authorDana Jansens <danakj@orodu.net>
Fri, 10 Jan 2003 22:42:45 +0000 (22:42 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 10 Jan 2003 22:42:45 +0000 (22:42 +0000)
src/openbox.cc

index b44a1861f03acb1d64f1f32863db400916b6126a..3232827ff92d3eddd3cc1f5a072e00a9b67d1feb 100644 (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;
This page took 0.022251 seconds and 4 git commands to generate.