Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Use SingleInstance when creating the Dbus objects
Browse files Browse the repository at this point in the history
  • Loading branch information
nikdoof committed Mar 29, 2009
1 parent 59db6ee commit 6db2588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oblogout/dbushandler.py
Expand Up @@ -63,7 +63,7 @@ def _halpm (self):
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
Expand Down

0 comments on commit 6db2588

Please sign in to comment.