search for variant names of glib 1.2 lib
authorPhilip Kovacs <pkovacs@users.sourceforge.net>
Tue, 24 Jan 2006 23:03:58 +0000 (23:03 +0000)
committerPhilip Kovacs <pkovacs@users.sourceforge.net>
Tue, 24 Jan 2006 23:03:58 +0000 (23:03 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@507 7f574dfc-610e-0410-a909-a81674777703

src/xmms.c

index 27ea536..47633ce 100644 (file)
@@ -218,9 +218,12 @@ void *xmms_thread_func_dynamic(void *pvoid)
     switch(info.xmms.current_project) {
 
     case (PROJECT_XMMS) :
-           glib_v1_2_handle = dlopen("libglib-1.2.so.0", RTLD_LAZY);
+           /* make an effort to find the glib 1.2 shared lib */
+           glib_v1_2_handle = dlopen("libglib-1.2.so.0", RTLD_LAZY) ||
+                              dlopen("libglib12.so", RTLD_LAZY) ||
+                              dlopen("libglib.so", RTLD_LAZY);
            if (!glib_v1_2_handle) {
-               ERR("unable to open libglib-1.2.so.0");
+               ERR("unable to find glib 1.2 shared object lib!");
                pthread_exit(NULL);
            }
            g_free_v1_2=dlsym(glib_v1_2_handle, "g_free");