X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fengine.c;h=66d305805a155c48f137a4e6c1c5321899edfb8d;hb=f278ec41e4c310da218563e7d443df32783e26e4;hp=15722e3294b64bf6bd30e549ffc7c682149c546e;hpb=ee2368044dd077207962f71194158265c74fe74e;p=chaz%2Fopenbox diff --git a/openbox/engine.c b/openbox/engine.c index 15722e32..66d30580 100644 --- a/openbox/engine.c +++ b/openbox/engine.c @@ -46,19 +46,21 @@ static gboolean load(char *name) g_assert(module == NULL); - path = g_build_filename(ENGINEDIR, name, NULL); + path = g_build_filename(g_get_home_dir(), ".openbox", "engines", name, + NULL); module = g_module_open(path, 0); g_free(path); if (module == NULL) { - path = g_build_filename(g_get_home_dir(), ".openbox", "engines", name, - NULL); - module = g_module_open(path, 0); - g_free(path); + path = g_build_filename(ENGINEDIR, name, NULL); + module = g_module_open(path, 0); + g_free(path); } - if (module == NULL) + if (module == NULL) { + g_warning(g_module_error()); return FALSE; + } /* load the engine's symbols */ LOADSYM(startup, estartup);