On 8/17/07, <b class="gmail_sendername">David Faure</b> <<a href="mailto:faure@kde.org">faure@kde.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Friday 17 August 2007, Jason 'vanRijn' Kasper wrote:<br>> re, all...<br>><br>> KPilot uses a daemon process (kpilotDaemon) which remains running for<br>> synchronization to take place for our users. It does not currently have any
<br>> on-screen presence (nor has it ever) other than its system tray icon, which<br>> means that it does not have a top-level widget. Our new keyring conduit<br>> needs to store a password and retrieve it from the wallet subsystem. It
<br>> looks like KWallet::Wallet was designed with the assumption that it would<br>> only be accessed from processes that have a top-level QWidget and thus a<br>> window id. In our case, currently, this is not a true assumption.
<br>><br>> How should we approach this? It seems like the following are possible<br>> solutions:<br>><br>> 1) The Wallet subsystem be changed to not require a top-level widget and<br>> window id. Not sure what the ramifications of this are or if it's desirable.
<br>><br>> 2) Our keyring conduit does some hackery to randomly pick a top-level widget<br>> like this: WId window = QApplication::topLevelWidgets().at(1)->winId();<br>> This seems like not the right way... =;)
<br><br>3) The application that talks to kpilotDaemon gives it a winId?<br><br>(or does the daemon synchronize stuff without any user interaction?)</blockquote><div><br>Hi David. The daemon does all of its synchronizing without any user interaction. Like I said, there is no visible on-screen presence for kpilotDaemon as it is doing its thing other than the system tray icon. =:/ Any other ideas?
<br></div></div><br clear="all"><br>-- <br> -[ Jason 'vanRijn' Kasper // <a href="http://movingparts.net">http://movingparts.net</a> ]-<br> -[ KDE PIM Developer // <a href="http://www.kde.org">http://www.kde.org
</a> ]-<br> -[ bash fun -> :(){ :|:&};: // Numbers 6:22-26 ]-