From 76e351788289d9876919f4532ea4005c6b068251 Mon Sep 17 00:00:00 2001 From: notmuchtohide <106391832+notmuchtohide@users.noreply.github.com> Date: Sun, 8 Mar 2026 16:41:09 +0000 Subject: [PATCH 1/3] Add label to system_info This is necessary to display qube colors in qrexec-policy-graph. --- qubes/api/internal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubes/api/internal.py b/qubes/api/internal.py index b845a4806..50c5fe3c0 100644 --- a/qubes/api/internal.py +++ b/qubes/api/internal.py @@ -131,6 +131,7 @@ def get_system_info(cls, app): else None ), "icon": str(domain.label.icon), + "label": str(domain.label.color), "guivm": ( domain.guivm.name if getattr(domain, "guivm", None) From 7f3b599622dba7aed16c15da7ede73cfc702e166 Mon Sep 17 00:00:00 2001 From: notmuchtohide <106391832+notmuchtohide@users.noreply.github.com> Date: Sat, 21 Mar 2026 11:23:00 +0000 Subject: [PATCH 2/3] Add label to vm_events --- qubes/api/internal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/api/internal.py b/qubes/api/internal.py index 50c5fe3c0..e74462f75 100644 --- a/qubes/api/internal.py +++ b/qubes/api/internal.py @@ -53,6 +53,8 @@ class SystemInfoCache: "property-reset:default_dispvm", "property-set:icon", "property-reset:icon", + "property-set:label", + "property-reset:label", "property-set:guivm", "property-reset:guivm", "property-set:relayvm", From 34a76efcecb7e647233939369c09e7dd5d4461e6 Mon Sep 17 00:00:00 2001 From: notmuchtohide <106391832+notmuchtohide@users.noreply.github.com> Date: Sat, 21 Mar 2026 11:26:18 +0000 Subject: [PATCH 3/3] Add label to test_010 --- qubes/tests/api_internal.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubes/tests/api_internal.py b/qubes/tests/api_internal.py index 48cbfd844..45f4cde4e 100644 --- a/qubes/tests/api_internal.py +++ b/qubes/tests/api_internal.py @@ -221,6 +221,7 @@ def test_010_get_system_info(self): self.dom0.default_dispvm = None self.dom0.template_for_dispvms = False self.dom0.label.icon = "icon-dom0" + self.dom0.label.color = "0xffffff" self.dom0.get_power_state.return_value = "Running" self.dom0.uuid = uuid.UUID("00000000-0000-0000-0000-000000000000") del self.dom0.guivm @@ -232,6 +233,7 @@ def test_010_get_system_info(self): vm.default_dispvm = vm vm.template_for_dispvms = True vm.label.icon = "icon-vm" + vm.label.color = "0xcc0000" vm.guivm = vm vm.get_power_state.return_value = "Halted" vm.uuid = TEST_UUID @@ -246,6 +248,7 @@ def test_010_get_system_info(self): "template_for_dispvms": False, "icon": "icon-dom0", "internal": None, + "label": "0xffffff", "guivm": None, "power_state": "Running", "relayvm": None, @@ -259,6 +262,7 @@ def test_010_get_system_info(self): "template_for_dispvms": True, "icon": "icon-vm", "internal": 1, + "label": "0xcc0000", "guivm": "vm", "power_state": "Halted", "relayvm": None,