Mike Oliver wrote:
> Glenn Glazer wrote:
>> So, I think there is some unix flavor differences here.  Following 
>> the instructions on the first link:
>>> |$ xprop -id $WINDOWID | grep WM_NAME
>>> WM_NAME(STRING) = "this is my title"
>>> current_title=$(xprop -id $WINDOWID | grep WM_NAME | cut -d= -f2)|
>> Doesn't work because the $WINDOWID on Solaris is set to something 
>> other than the id that xprop is expecting.
>
> When you said "xterm", did you really mean "xterm" (as in the
> program '/usr/openwin/bin/xterm') or did you mean a generic
> terminal window?  Your results here are what I'd expect to see
> with something like gnome-terminal where the terminal window
> is wrapped in a layer of other stuff (menu bar, tab bar) and
> the window whose name you're trying to find is the parent of
> the terminal window.  Good ol' vanilla 'xterm' doesn't have
> that extra wrapper.
Nice sussing.  Indeed, I am using gnome-terminal.  Thanks for the 
reminder to be more careful with terms of art.
>
> 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.
>
> Mike.
Mike, you're the man:
> [168] xwininfo -children -id $WINDOWID
>
> xwininfo: Window id: 0x72a564 (has no name)
>
>   Root window id: 0x2e (the root window) (has no name)
>   Parent window id: 0x72a55c "launcher"
>      0 children.
Thanks everyone for the advice and suggestions, off to script land for me.

Best,

Glenn
-- 

     ______
    /_____/\      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/8ad76a4f/attachment.html>

Reply via email to