From a5801322d9f5fce0dc4ed6cfa739ef84e3754349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 21 Jun 2025 13:40:58 +0200 Subject: [PATCH] Assume GUI is enabled if dom0 didn't provide that info Generally we require dom0 to be updated before VM, so that qubesdb key should always be there. But since handling the opposite case here is easy, lets do that anyway. --- qubes-rpc/qubes.WaitForSession | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes-rpc/qubes.WaitForSession b/qubes-rpc/qubes.WaitForSession index c904a2a7e..9146b24e3 100755 --- a/qubes-rpc/qubes.WaitForSession +++ b/qubes-rpc/qubes.WaitForSession @@ -1,7 +1,7 @@ #!/bin/sh set -eu -if test "$(qubesdb-read /qubes-gui-enabled)" = "True"; then +if test "$(qubesdb-read --default=True /qubes-gui-enabled)" = "True"; then user="$(qubesdb-read /default-user || echo 'user')" while ! [ -e "/var/run/qubes/qrexec-server.$user.sock" ]; do sleep 0.1