Use SingleInstance when creating the Dbus objects

This commit is contained in:
2009-03-29 20:21:33 +01:00
parent 59db6ee232
commit 6db2588b7d

View File

@@ -63,7 +63,7 @@ class DbusController (object):
def _authagent (self):
"""AuthenticationAgent object"""
if not hasattr (DbusController, "__authagent"):
autha = self._sessbus.get_object ("org.freedesktop.PolicyKit.AuthenticationAgent", "/")
autha = self._sessbus.get_object ("org.freedesktop.PolicyKit.AuthenticationAgent", "/", "org.gnome.PolicyKit.AuthorizationManager.SingleInstance")
DbusController.__authagent = dbus.Interface(autha,'org.freedesktop.PolicyKit.AuthenticationAgent')
return DbusController.__authagent