On Sun, 21 Mar 2021, Volker Hilsheimer wrote:

> My gut feeling is that esp for command line applications, a call equivalent to
> 
> $ xwininfo -d $DISPLAY -root
> 
> will be a better solution than creating a QApplication (rather than a
> QCoreApplication) to query the root window ID.

That’s not what I need to do here.

> Alternatively, use Xlib APIs.

You misunderstand.

I need to use the KDE Wallet API. This involves doing a Qt application
and other fancy stuff. The CLI program needs $DISPLAY set and usable,
because that’s where it connects to the KDE wallet. It’s still a CLI,
intended for use in e.g. scripts.

bye,
//mirabilos
-- 
Infrastrukturexperte • tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

*************************************************

Mit dem tarent-Newsletter nichts mehr verpassen: www.tarent.de/newsletter

*************************************************
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to