Load the rc.xml config file given on --config-file the same as Openbox (use the whole...
authorDana Jansens <danakj@orodu.net>
Fri, 5 Aug 2011 16:05:10 +0000 (12:05 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 5 Aug 2011 16:05:10 +0000 (12:05 -0400)
src/main.c

index 9035e8d..a576253 100644 (file)
@@ -233,11 +233,10 @@ int main(int argc, char **argv)
     }
 
     xmlIndentTreeOutput = 1;
-    if (!obt_xml_load_config_file(parse_i,
-                                  "openbox",
-                                  (obc_config_file ?
-                                   obc_config_file : "rc.xml"),
-                                  "openbox_config"))
+    if (!((obc_config_file &&
+           obt_xml_load_file(parse_i, obc_config_file, "openbox_config")) ||
+          obt_xml_load_config_file(parse_i, "openbox", "rc.xml",
+                                   "openbox_config")))
     {
         obconf_error(_("Failed to load an rc.xml. You have probably failed to install Openbox properly."), TRUE);
         exit_with_error = TRUE;