KWallet problem for daemon process

Jason 'vanRijn' Kasper vr at movingparts.net
Sat Aug 18 01:34:23 BST 2007


Hi George!!  =:)

Can you point me to some kio code that does this?  I looked in a few KIO
directories, but nothing that I saw uses the Wallet...

Thanks!!

On 8/17/07, George Staikos <staikos at kde.org> wrote:
>
>
> If you don't provide one then KWallet's prompt will suffer the
> infamous "wallet prompt appears in the background" problem.  However
> just look at what KIO does.  It has the same issue.
>
> On 17-Aug-07, at 8:03 AM, Jason 'vanRijn' Kasper wrote:
>
> > re, all...
> >
> > KPilot uses a daemon process (kpilotDaemon) which remains running for
> > synchronization to take place for our users.  It does not currently
> > have any
> > on-screen presence (nor has it ever) other than its system tray
> > icon, which
> > means that it does not have a top-level widget.  Our new keyring
> > conduit
> > needs to store a password and retrieve it from the wallet
> > subsystem.  It
> > looks like KWallet::Wallet was designed with the assumption that it
> > would
> > only be accessed from processes that have a top-level QWidget and
> > thus a
> > window id.  In our case, currently, this is not a true assumption.
> >
> > How should we approach this?  It seems like the following are possible
> > solutions:
> >
> > 1) The Wallet subsystem be changed to not require a top-level
> > widget and
> > window id.  Not sure what the ramifications of this are or if it's
> > desirable.
> >
> > 2) Our keyring conduit does some hackery to randomly pick a top-
> > level widget
> > like this:  WId window = QApplication::topLevelWidgets().at(1)-
> > >winId();
> > This seems like not the right way...  =;)
> >
> > Help, please?  =:)
> >
> > Thanks!!!
> >
> > --
> >  -[ Jason 'vanRijn' Kasper    //  http://movingparts.net ]-
> >  -[ KDE PIM Developer         //  http://www.kde.org  ]-
> >  -[ bash fun -> :(){ :|:&};:  //  Numbers 6:22-26 ]-
>
> --
> George Staikos
> KDE Developer                           http://www.kde.org/
> Staikos Computing Services Inc.         http://www.staikos.net/
>
>
>
>


-- 
-[ Jason 'vanRijn' Kasper    //  http://movingparts.net ]-
-[ KDE PIM Developer         //  http://www.kde.org  ]-
-[ bash fun -> :(){ :|:&};:  //  Numbers 6:22-26 ]-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070817/c44c9e8e/attachment.htm>


More information about the kde-core-devel mailing list