fix: harden Wayland compositor runtime checks
This commit is contained in:
@@ -17,6 +17,7 @@ from typing import Any
|
||||
|
||||
from gi.repository import GLib
|
||||
|
||||
from . import debug
|
||||
from .compositor_state_types import (
|
||||
DESKTOP_TRANSITION_FINISHED,
|
||||
DESKTOP_TRANSITION_STARTED,
|
||||
@@ -98,7 +99,9 @@ class WaylandSharedProtocolsBackend:
|
||||
self._bind_listener(self._registry, "global_remove", self._handle_registry_global_remove)
|
||||
self._roundtrip()
|
||||
self._install_dispatch_watch()
|
||||
except Exception:
|
||||
except Exception as error:
|
||||
msg = f"COMPOSITOR STATE: Wayland backend activation failed: {error}"
|
||||
debug.printMessage(debug.LEVEL_WARNING, msg, True)
|
||||
self.deactivate()
|
||||
|
||||
def deactivate(self, emit_signal: Any = None) -> None:
|
||||
|
||||
Reference in New Issue
Block a user