From 37283c0921576b185ed1e7e0561b047c636c754d Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:19:24 -0700 Subject: [PATCH] Pull in most recent shared-js module --- box/ui/breezyboxruntimeenvironment.py | 40 +++++++++++++++++++++++++++ gnome/src/shared | 2 +- kwin/src/qml/shared | 2 +- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 box/ui/breezyboxruntimeenvironment.py diff --git a/box/ui/breezyboxruntimeenvironment.py b/box/ui/breezyboxruntimeenvironment.py new file mode 100644 index 0000000..4df6f45 --- /dev/null +++ b/box/ui/breezyboxruntimeenvironment.py @@ -0,0 +1,40 @@ +"""Breezy Box runtime environment (headless). + +Stub implementation for the headless "Breezy Box" environment. Unlike the GNOME +environment there is no shell extension to install/enable, no verification step, +and no in-app update prompt. The connected-device view is always shown (with a +fallback label when no glasses are connected). + +Virtual-display support is not yet implemented here; flesh out +``_create_virtual_display_manager`` / ``is_virtual_display_supported`` against +the box backend when it exists. + +This module is packaged into the UI's ``runtimes`` subpackage by the box package +flow, so its imports are relative to the installed ``breezydesktop`` package. +""" + +import logging + +from ..runtimeenvironment import RuntimeEnvironment + +logger = logging.getLogger('breezy_ui') + + +class BreezyBoxRuntimeEnvironment(RuntimeEnvironment): + APP_NAMESPACE = 'breezy_box' + + def __init__(self): + super().__init__() + # On the box the effect is always engaged; there's no extension to gate + # it behind. + self._breezy_enabled = True + + # is_installed(), verify(), check_for_update(), enable()/disable() and the + # NullVirtualDisplayManager defaults from RuntimeEnvironment are all + # appropriate for the box stub. + + @property + def shows_no_device_view(self): + # Always show the connected-device view; no_device_label() supplies the + # text shown when no glasses are connected. + return False diff --git a/gnome/src/shared b/gnome/src/shared index f8e9aeb..fe67ed8 160000 --- a/gnome/src/shared +++ b/gnome/src/shared @@ -1 +1 @@ -Subproject commit f8e9aeb9a240a40d5c5608821847dc4dfccddfad +Subproject commit fe67ed8f0c154ee84357b4c2d615bb91a2baf2d6 diff --git a/kwin/src/qml/shared b/kwin/src/qml/shared index 65376ad..fe67ed8 160000 --- a/kwin/src/qml/shared +++ b/kwin/src/qml/shared @@ -1 +1 @@ -Subproject commit 65376ad92e0cecfc0bf77ced15ed0d32e33c6f82 +Subproject commit fe67ed8f0c154ee84357b4c2d615bb91a2baf2d6