コード例 #1
0
ファイル: keyboard.py プロジェクト: jaymzh/anaconda
    def __init__(self):
        try:
            self._connection = safe_dbus.get_new_system_connection()
        except GLib.GError as e:
            if can_touch_runtime_system("raise GLib.GError", touch_live=True):
                raise

            log.error("Failed to get safe_dbus connection: %s", e)
            self._connection = None
コード例 #2
0
    def __init__(self):
        try:
            self._connection = safe_dbus.get_new_system_connection()
        except GError as e:
            if conf.system.provides_system_bus:
                raise

            log.error("Failed to get safe_dbus connection: %s", e)
            self._connection = None
コード例 #3
0
ファイル: keyboard.py プロジェクト: nullr0ute/anaconda
    def __init__(self):
        try:
            self._connection = safe_dbus.get_new_system_connection()
        except GLib.GError as e:
            if can_touch_runtime_system("raise GLib.GError", touch_live=True):
                raise

            log.error("Failed to get safe_dbus connection: %s", e)
            self._connection = None
コード例 #4
0
ファイル: keyboard.py プロジェクト: rvykydal/anaconda
    def __init__(self):
        try:
            self._connection = safe_dbus.get_new_system_connection()
        except GError as e:
            if conf.system.provides_system_bus:
                raise

            log.error("Failed to get safe_dbus connection: %s", e)
            self._connection = None