From 74bd28d25abc5655f1097ebf4c15ee87b379fa1c Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 10 Nov 2025 03:50:33 +1100 Subject: [PATCH] ci(gui-client): fix `.deb` test installation (#10816) The current test installation fails because it is operating in a headless environment without a display user. Some more testing of the `who` command showed that we can simply take the first user. That avoids `grep` which was previously failing with an exit code of 1, aborting the installation because our `postinst` script has `pipefail` set. --- rust/gui-client/src-tauri/linux_package/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/gui-client/src-tauri/linux_package/postinst b/rust/gui-client/src-tauri/linux_package/postinst index 1d80abe83..2d7e549a6 100755 --- a/rust/gui-client/src-tauri/linux_package/postinst +++ b/rust/gui-client/src-tauri/linux_package/postinst @@ -4,7 +4,7 @@ set -euo pipefail SERVICE_NAME="firezone-client-tunnel" -DISPLAY_USER=$(who | grep '(login screen)' | awk '{print $1}') +DISPLAY_USER=$(who | awk '{print $1}' | head -n 1) if [ -n "${PKEXEC_UID:-}" ]; then INVOKING_USER=$(id -un "$PKEXEC_UID" 2>/dev/null) # Detect user from PolicyKit.