[kde-linux] Testing open window

Kevin Krammer kevin.krammer at gmx.at
Tue Apr 18 14:48:24 UTC 2006


On Monday 17 April 2006 16:49, Alain M. wrote:
> Kevin Krammer escreveu:
> > On Saturday 15 April 2006 00:55, Alain M. wrote:
> >> How do I detect that a certain program has an open window? Preferably
> >> with shell script commands.
> >
> > Maybe with xwininfo and/or xprop
>
> Thanks, xwininfo appears to be what I want, but there is a problem:
> either I have to give the ID or the full name. The problem is that the
> full name is "Linux Kde - alainm at pobox.com - Thunderbird" where the
> middle part is not fixed.
>
> How do I store the ID of a window that I have just created (from a
> script)? or how go I get a list of all open windows to search for the
> one I want?

I think xwininfo -root -tree lists all windows

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20060418/de672b40/attachment.sig>


More information about the kde-linux mailing list