From: Dana Jansens Date: Sun, 6 Apr 2003 17:42:11 +0000 (+0000) Subject: print the error when the engine cant load X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;ds=sidebyside;h=70e4138169f19102854bca49d4f55708fabcbbbf;p=chaz%2Fopenbox print the error when the engine cant load --- 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);