all repos — openbox @ 70e4138169f19102854bca49d4f55708fabcbbbf

openbox fork - make it a bit more like ryudo

print the error when the engine cant load
Dana Jansens danakj@orodu.net
commit

70e4138169f19102854bca49d4f55708fabcbbbf

parent

56f6acce8b0e29d94c62fe990d97ae4da3e179df

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

jump to
M openbox/engine.copenbox/engine.c

@@ -46,19 +46,21 @@ char *path;

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);