Re: Writing C/C++ code to detect running desktop environment