Don't propagate GDK_NATIVE_WINDOWS to child processes

Generally you only need to work around bugs in one specific app, so we
don't want to affect the applications that application will start.
Thus we unset GDK_NATIVE_WINDOWS after reading it.
This commit is contained in:
Alexander Larsson 2009-08-31 09:38:14 +02:00
parent 4d3b19fa7c
commit b18afe9054

View File

@ -206,8 +206,13 @@ gdk_pre_parse_libgtk_only (void)
}
#endif /* G_ENABLE_DEBUG */
if (getenv("GDK_NATIVE_WINDOWS"))
_gdk_native_windows = TRUE;
if (getenv ("GDK_NATIVE_WINDOWS"))
{
_gdk_native_windows = TRUE;
/* Ensure that this is not propagated
to spawned applications */
g_unsetenv ("GDK_NATIVE_WINDOWS");
}
g_type_init ();