1#!/usr/local/bin/python3.8 2 3from gi.repository import GObject 4 5class LoginInterface(GObject.Object): 6 """ 7 A common signal interface for our Logind and ConsoleKit clients. 8 """ 9 __gsignals__ = { 10 'startup-status': (GObject.SignalFlags.RUN_LAST, None, (bool, )), 11 'lock': (GObject.SignalFlags.RUN_LAST, None, ()), 12 'unlock': (GObject.SignalFlags.RUN_LAST, None, ()), 13 'active': (GObject.SignalFlags.RUN_LAST, None, ()), 14 } 15 16 def __init__(self, *args): 17 super(LoginInterface, self).__init__(*args) 18