]> git.sesse.net Git - vlc/commitdiff
Do not load KDE Qt plugins until KDE gets a clue
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 30 Jan 2011 12:40:02 +0000 (14:40 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 30 Jan 2011 12:40:02 +0000 (14:40 +0200)
bin/override.c

index 2c94afe4f437242c4a4896deccddf8a82841b557..0828f00717f528a8d1553be6f26b519aef7a632d 100644 (file)
@@ -264,8 +264,26 @@ error:
 #endif
 
 
-/*** Locales ***
- * setlocale() is not thread-safe and has a tendency to crash other threads as
+/*** Dynaminc linker ***/
+
+void *dlopen (const char *path, int flags)
+{
+    if (override && path != NULL)
+    {
+        /* Work around the KDE SIGCHLD and KDE D-Bus exit handler bugs */
+        if (strstr (path, "libkde") != NULL)
+        {
+            LOG("Blocked", "\"%s\", %d", path, flags);
+            return NULL;
+        }
+    }
+    return CALL(dlopen, path, flags);
+}
+
+
+/*** Locales ***/
+
+/* setlocale() is not thread-safe and has a tendency to crash other threads as
  * quite many libc and libintl calls depend on the locale.
  * Use uselocale() instead for thread-safety.
  */