X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bin%2Fvlc.c;h=e141b4b431728c065c0c0d9facb00ae3dc3150d6;hb=6c948b6dfde5d0edd4b1975ff8a4a0f89fd9e2c9;hp=9e769b018cb80fc42eeac674d146dcbc78271658;hpb=f0d55dabe9747009d296e251bda7dc2f812bb077;p=vlc diff --git a/bin/vlc.c b/bin/vlc.c index 9e769b018c..e141b4b431 100644 --- a/bin/vlc.c +++ b/bin/vlc.c @@ -75,6 +75,12 @@ int main( int i_argc, const char *ppsz_argv[] ) * 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 if (geteuid () == 0)