Example #1
0
 def reboot(self):
     if not gdm.supports_logout_action(gdm.LOGOUT_ACTION_REBOOT):
         return False
     
     gdm.set_logout_action(gdm.LOGOUT_ACTION_REBOOT)
     return self.logout()
Example #2
0
 def shutdown(self):
     if not gdm.supports_logout_action(gdm.LOGOUT_ACTION_SHUTDOWN):
         return False
     
     gdm.set_logout_action(gdm.LOGOUT_ACTION_SHUTDOWN)
     return self.logout()