all repos — openbox @ da04050c9a539ba93e29ad8e4c5d104386b27989

openbox fork - make it a bit more like ryudo

dont do the same thing 100 times
Dana Jansens danakj@orodu.net
commit

da04050c9a539ba93e29ad8e4c5d104386b27989

parent

78d725009812d3aed87024264f0112ca9968519a

1 files changed, 6 insertions(+), 5 deletions(-)

jump to
M parser/parse.cparser/parse.c

@@ -87,11 +87,12 @@ gboolean r = FALSE;

*fileused = NULL; - for (it = xdg_config_dir_paths; !r && it; it = g_slist_next(it)) { - if (file) { - if ((r = parse_load(file, "openbox_config", doc, root))) - *fileused = g_strdup(file); - } else { + if (file) { + if ((r = parse_load(file, "openbox_config", doc, root))) + *fileused = g_strdup(file); + } else { + /* this won't run if the above code loaded a config */ + for (it = xdg_config_dir_paths; !r && it; it = g_slist_next(it)) { gchar *path; path = g_build_filename(it->data, "openbox", "rc.xml", NULL);