this is one of the (many) (huge) issues with current e_dbus, and a reason why it must be completely scrapped in the future. in order to achieve the functionality you are looking for, you basically have two options: 1) recursive main loops 2) block in this thread, fork and pipe to get the result
either way sucks and is not recommended. On Tue, Jul 24, 2012 at 4:36 AM, Nick Hughart <mek...@mekius.net> wrote: > Alright, so I'm working on a PolicyKit1 authentication agent and have > run into something of a problem. I am working on implementing this > dbus method: > > > http://hal.freedesktop.org/docs/polkit/eggdbus-interface-org.freedesktop.PolicyKit1.AuthenticationAgent.html#eggdbus-method-org.freedesktop.PolicyKit1.AuthenticationAgent.BeginAuthentication > > I am unmarshaling the command and all that just fine inside a callback > function that was specified in when setting up BeginAuthentication via > e_dbus_interface_method_add. > > The problem is that I have to somehow popup a window to authenticate > the user before calling AuthenticationAgentResponse and also before I > send the reply for BeginAuthentication. > > Given that while I'm in the callback, the elm main loop will not be > running, I'm not sure how to popup the dialog without returning from > the callback and thus replying to the dbus message before making the > call to AuthenticationAgentResponse(). > > Will I need to fork off a process to do the GUI part of the app while > leaving another process to do the DBus communication or is there > something I'm missing? > > Been hoping to see some dbus gurus in #edevel, but seems I keep > missing them so hoping someone can enlighten me :) > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel