dbus beginner
Dave Amies
damies13+dbus at gmail.com
Sat May 18 08:41:12 UTC 2024
Hi All,
I'm new here, so perhaps it's best to explain what I'm aiming to
achieve and you can tell me if I'm heading in the right direction?
I want to create a add in library for an open source test automation tool
that will allow the automation of linux desktop apps, there is already a
library for windows desktop apps but for linux and mac the only options are
image based test which are unreliable and clumsy, so my goal is to try and
fix this for linux.
I have written libraries for this test automation tool before, It uses
python for these libraries and that part is quite easy.
So far my searches for how to do various desktop actions using python all
led me to dbus, but then I also see comments that the examples no longer
work in newer versions of gnome due to security reasons.
I've installed d-feet on my machine and had a bit of a poke around but
honestly I'm a bit lost and don't really know where to start and what the
best practices are
So I guess I'm looking for a beginner's guide to dbus for automating the
desktop, gnome & kde is probably a minimum I'll need, but if the code can
be generic and support mre DE's that would be great.
My first steps I'd like to achieve are:
- get a list of open windows
- get the active/foreground window (I know it's not always the same thing)
- bring a window to the foreground & make it active
- get a window position & size
- move a window
- resize a window
Any pointers would be appreciated, I don't expect code examples, just point
me in the right direction in the documentation.
Thanks,
Dave.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20240518/39db942f/attachment.htm>
More information about the dbus
mailing list