Defaults to using no password manager if KWallet or gnome-keyring

not compiled in, or not available
This commit is contained in:
Juan Carlos Cornejo 2012-01-17 16:34:10 -05:00 committed by Klaas Freitag
parent a1fe2d9089
commit 40c1f93205

View file

@ -13,7 +13,11 @@ OwnPasswordManager::OwnPasswordManager(QObject *parent, WId winID )
p.start("pidof",args);
p.waitForFinished(-1);
if(p.readAllStandardOutput()!="") {
#if defined(OCS_USE_KWALLET)
mPasswordManagerLinux = KWALLET;
#else
mPasswordManagerLinux = NONE;
#endif
} else {
args.clear();
args.push_back("gnome-session");