]> Dogcows Code - chaz/openbox/commitdiff
print the error when the engine cant load
authorDana Jansens <danakj@orodu.net>
Sun, 6 Apr 2003 17:42:11 +0000 (17:42 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 6 Apr 2003 17:42:11 +0000 (17:42 +0000)
openbox/engine.c

index 15722e3294b64bf6bd30e549ffc7c682149c546e..66d305805a155c48f137a4e6c1c5321899edfb8d 100644 (file)
@@ -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);
This page took 0.023646 seconds and 4 git commands to generate.