Detecting OS and Window Manager
Sean 'Shaleh' Perry
shalehperry at attbi.com
Fri Jun 7 11:47:22 EDT 2002
>
> Maybe import your kde module(s), and then try to do something KDE specific
> without KDE running and see what kind of error this causes so you will know
> what to trap for? Hopefully some other newbie (for a much less significant
> value of new, AKA expert) is still following this thread to give you a
> better answer.
>
there is no way to be sure what he wants is running. He could do a NET_WM_*
check and see if a netwm compliant wm was running. He could then request from
this wm a window list and see if any of those windows claim to be taskbars.
The point is, X is designed to make this hard. One app should only use the
interfaces out there and not ask for an implementation (yep, that thread again).
Shaleh
blackbox window manager co-author
More information about the Python-list
mailing list