http://bugs.winehq.org/show_bug.cgi?id=22168
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2010-03-26 11:34:10 --- (In reply to comment #0)
Apparently, mono has decided I'm running GNOME because I have environment variables GNOME_DESKTOP_SESSION_ID and DESKTOP_SESSION defined.
Unsetting these variables or moving the program into C: gets it to a later exception, after the splash screen has started.
Maybe these should be "special" variables?
I'm inclined to say, no. We can't hardcode a blacklist for every possible environment variable. I suspect this bug is invalid.
There have been other bugs with regard to the importing of environment variables--see e.g. bug 1490.