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()
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()