Mike Oliver wrote:
> Mike Oliver wrote:
>
>> Anyway, you should be able to get the information you're
>> looking for by piping the output of
>> 'xwininfo -children -id $WINDOWID' into an awk/perl/sed/whatever
>> script that extracts the first quoted string at end-of-line
>> from the output.
>>
>
> Oops; your awk/perl/sed/whatever command will also need to be
> smart enough to skip lines that begin with the word "Root", in
> order to avoid getting the wrong answer if the display's root
> window has a name.
>
> Mike.
>
In all of my tests so far, the name has always shown up in the "Parent
window id" line except for the one window where I was ssh'd into another
host[1] and I got the help output instead. I *think* it should suffice
to grep for the Parent label since I don't have any complicated
relationships among my terms. Even when I shift-ctrl-N in a term to
create a new one, that one lists its own title and the original term
still lists 0 children.
Best,
Glenn
[1] Even after exporting the display and xhost'ing the target host.
--
______
/_____/\ Glenn Glazer
/____ \\ \ glenn.glazer at sun.com
/_____\ \\ / Compute Resources
/_____/ / \//\ x63073/(408) 992-9073
\_____\//\ / / Cell Phone: (562) 305-2920
\_____/ / /\ /
\_____/ \\ \ Sun Microsystems, Inc.
\_____\ \\ 324 North Mary Avenue
\_____\/ Sunnyvale, CA 94085
11.00100100001111110110...
3.243F6A8885A308D31319...
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20080521/e61d37cc/attachment.html>