From 9129d1c6b033fa2a6a1beec14530e6119edeb1fd Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Thu, 8 Jan 2026 15:53:07 +0100 Subject: [PATCH] Allow preloading without graphics The service currently times out and later degrades the status of is-system-running, but the GUI would never connect when it is disabled. For: https://github.com/QubesOS/qubes-issues/issues/1512 --- appvm-scripts/qubes-gui-agent.service | 1 + 1 file changed, 1 insertion(+) diff --git a/appvm-scripts/qubes-gui-agent.service b/appvm-scripts/qubes-gui-agent.service index e7a8db18..c3684fc8 100644 --- a/appvm-scripts/qubes-gui-agent.service +++ b/appvm-scripts/qubes-gui-agent.service @@ -9,6 +9,7 @@ TTYPath=/dev/tty7 # custom PATH for X session can be set with ENV_PATH; otherwise service's PATH # is inherited #Environment=ENV_PATH=/usr/local/bin:/usr/bin:/bin +ExecCondition=/bin/sh -c 'test "$(qubesdb-read --default=True /qubes-gui-enabled)" = "True"' ExecStartPre=/bin/sh -c /usr/lib/qubes/qubes-gui-agent-pre.sh ExecStart=/usr/bin/qubes-gui $GUI_OPTS # clean env