local/remote how to detect?

Carsten Haitzler (The Rasterman) raster at rasterman.com
Mon Jul 2 15:50:30 PDT 2007


On Mon, 02 Jul 2007 23:15:24 +0200 Bert Wesarg <wesarg at informatik.uni-halle.de>
babbled:

> 
> 
> Tiago Vignatti wrote:
> > Bert Wesarg escreveu:
> >> Hello All,
> >>
> >> [ Maybe a FAQ ]
> >>
> >> is it possible to reliable detect if me (the X client) is remote or local
> >> to the X server?
> > 
> > Maybe the 'xlsclients' tool. The first row of the output will tell which 
> > machine the client is connected.
> Thanks, indeed a nice tool. unfortunelatly the client i'm interested (a
> motif one) is not even listed when all is running local (and yes I used
> option -a and -l)! all other things like xmms, gkrellm are listed.

all xlsclients does it walk the window tree and look at window properties for
title, name/class etc.

as i suggested before. try create an xshmimage - this will only succeed if you
are local. tonnes of sample code out there on how to do this (its more than 1
step).

> regards
> bert
> 
> > 
> > 
> > regards
> > 
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com
裸好多
Tokyo, Japan (東京 日本)



More information about the xorg mailing list