From 8df975bb6781d89fa5331e59b5f742e755a4967b Mon Sep 17 00:00:00 2001 From: Dmytro Bagrii Date: Thu, 19 Feb 2026 02:27:47 +0200 Subject: [PATCH] xorg/50-systemd-user: import XAUTHORITY only if set The warning will still be reported if XAUTHORITY is set but not exported. However, such scenario is unlikely for xinitrc.d scripts environment. Fixes #40745 Signed-off-by: Dmytro Bagrii --- xorg/50-systemd-user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xorg/50-systemd-user.sh b/xorg/50-systemd-user.sh index fb03ecbec05..41b7c8a3b4d 100755 --- a/xorg/50-systemd-user.sh +++ b/xorg/50-systemd-user.sh @@ -8,7 +8,7 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. -systemctl --user import-environment DISPLAY XAUTHORITY +systemctl --user import-environment DISPLAY ${XAUTHORITY+XAUTHORITY} if command -v dbus-update-activation-environment >/dev/null 2>&1; then dbus-update-activation-environment DISPLAY XAUTHORITY -- 2.47.3