On Tue, 24 Jul 2012 07:01:37 -0300
Lucas De Marchi <lucas.demar...@profusion.mobi> wrote:

> On Tue, Jul 24, 2012 at 12: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?
> 
> Nops. You can keep a ref to the message and decide to respond later.
> Just make the method return NULL. If it's not working, it's a bug and
> should be fixed.
> 
> See e_dbus_object_handler() in src/lib/dbus/e_dbus_object.c how it's
> implemented.
> 

Just the answer I was looking for :D

I had thought about trying this, but hadn't given it a shot yet as I
was working on some other aspects still.  I will try it and let you
know if it's working.

> 
> Lucas De Marchi
> 
> ------------------------------------------------------------------------------
> 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

Reply via email to