linux: detecting if you're running in a vnc session ...
https://stackoverflow.com/questions/2937171731.03.2015 · I have an OpenGL program that will not run correctly inside a VNC session. In order to start it remotely in a VNC session, I need to run it via vglrun.. I already have a wrapper script that launches the binary, but I need a reliable way to detect if I should run it via vglrun or to run the app as is.. I'm currently using thinlinc, which appears to modify LD_LIBRARY_PATH, PATH, and …