]> git.sesse.net Git - vlc/blobdiff - bin/vlc.c
Remove the Xlib no-ARGB hack
[vlc] / bin / vlc.c
index 9e769b018cb80fc42eeac674d146dcbc78271658..68cbfa07b2a630ebace6259366d7388c540c74e8 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -70,10 +70,12 @@ int main( int i_argc, const char *ppsz_argv[] )
     /* Disable the ugly Gnome crash dialog so that we properly segfault */
     putenv( (char *)"GNOME_DISABLE_CRASH_DIALOG=1" );
 # endif
-
-    /* Make Xlib hide visuals with an alphachannel. Ensure that Qt4 will not
-     * use the alpha channel for the embedded video window. */
-    putenv( (char *)"XLIB_SKIP_ARGB_VISUALS=1" );
+#endif
+#ifdef HAVE_SETENV
+    /* Clear the X.Org startup notification ID. Otherwise the UI might try to
+     * change the environment while the process is multi-threaded. That could
+     * crash. Screw you X.Org. Next time write a thread-safe specification. */
+    unsetenv ("DESKTOP_STARTUP_ID");
 #endif
 
 #ifndef ALLOW_RUN_AS_ROOT