getenv("VGL_DISPLAY") doesn't work?
On 4/26/12 7:33 AM, Stefan Eilemann wrote: > Hi, > > I'm reheating this topic since I finally get around to implement this. > > In addition to detecting whether or not I run under VGL (solved below), I > also need to know which display is used by VGL to redirect the GL rendering > to. > >>From what I understand, this is determined by: > > - default :0.0 > - $VGL_DISPLAY > - vglrun -d > > I can easily figure out the first two programmatically, but not the last. > > Is there any hook for me to determine the VGL display from within the client > program? > > > Cheers, > > Stefan. > > On 11-12-22 11:54 AM, DRC wrote: >> If one really needs to know before "the" connection is made, it >> shouldn't be a difficulty to just: >> tmpdpy=XOpenDisplay(); glXGetClientString(tmpdpy); XCloseDisplay(tmpdpy); >> > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ VirtualGL-Devel mailing list VirtualGL-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtualgl-devel