PDA

View Full Version : Detecting whether KDEWallet is available



peteispo
6th November 2015, 11:22
Is there a way for a Qt program to know whether KDEWallet is available on the system it's installed on, at run time?
I have a program that needs to log in to a server, and it would be nice if it could use the wallet - that integration is documented elsewhere.
The problem is that my program might not be running on a KDE system in every case, and I'd like to be able to detect the availabilty of a KDEWallet (or some other OS password manager) at run time.

anda_skoa
6th November 2015, 16:36
- You could check for kwalletd's D-Bus name
- You could just call one of kwalletd's D-Bus methods and handle the error case
- You could be using something like https://github.com/frankosterfeld/qtkeychain

Cheers,
_