Get list of displays

Tiago Vignatti vignatti at c3sl.ufpr.br
Thu Aug 23 19:50:17 PDT 2007


dv escreveu:
> Hi,
> 
> is it possible to get a list of existing displays somehow? I searched 
> the Xlib API, but I cant find anything. For example, when two servers 
> are active, I'd like to get a list containing ":0" and ":1" somehow...
> 
> any ideas?

One could be read "/tmp/.X11-unix/" directory (at least on unix-based 
systems).


Cheers,

-- 
Tiago Vignatti
C3SL - Centro de Computação Científica e Software Livre
www.c3sl.ufpr.br



More information about the xorg mailing list