Commit 6c948b6d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Avoid a call to unsetenv/putenv on Qt4.6

This trick does not work with Qt <= 4.5 unfortunately.
parent f0d55dab
......@@ -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" );
/* 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");
if (geteuid () == 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment