> > Sorry for unclear text, yes, I meant KWallet API, you're right. Here's
> > those method itself:
> >
> > bool MicroBlog::enterWalletFolder(const QString &folder)
> > {
> >     //TODO: seems a bit silly to have a function just for this here
> >     //why doesn't kwallet have this itself?
> What's this TODO exactly meaning? Check for setFolder? I don't get it :-)

I actually don't know) It's not my code, I just wanted to fix it, so
it's "as is" :-)

> >     m_wallet->createFolder(folder);
> >     if (! m_wallet->setFolder(folder)) {
> >         //kDebug() << "failed to open folder" << folder; // <-- on
> > startup it fallbacks here
> >         return false;
> >     }
> >
> >     //kDebug() << "wallet now on folder" << folder;
> >     return true;
> > }
> >
> > And yes, it looks like a racing condition very much, perhaps, with
> > kwalletd daemon. But is there any way to ensure that it's already
> > started?
> Use KWallet::isEnabled() as it calls the daemon to check for that and it
> eventually starts the daemon if it's not already started.
> But you must have the Wallet system enabled system-wide, in System
> Settings, for this to happen.

Thank you for advice. And should I wait for it to return true or it
returns true after the daemon is started?

> > And should it be checked in client or I can ask some KDE part
> > about it?
> It's OK to check that in your plasmoid. It'll start the daemon for the
> others :-)

Yes, thank you, will try it.

> --
> Valentin Rusu (IRC valir, KDE vrusu)
> KSecretsService (former KSecretService, KWallet replacement)

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to