Results 1 to 2 of 2

Thread: Detecting whether KDEWallet is available

  1. #1
    Join Date
    Nov 2015
    Location
    Staplehurst, Kent, UK
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Detecting whether KDEWallet is available

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Detecting whether KDEWallet is available

    - 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,
    _

Similar Threads

  1. QT3 - detecting peer
    By sinja in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2009, 17:44
  2. Detecting OS
    By ankit17.ag in forum Qt Programming
    Replies: 2
    Last Post: 16th July 2008, 10:10
  3. Detecting low memory
    By steg90 in forum General Programming
    Replies: 3
    Last Post: 11th June 2007, 18:54
  4. detecting Hardware?!?!
    By nupul in forum Newbie
    Replies: 2
    Last Post: 7th April 2006, 08:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.