From f94ce7bd3e211b4dc6329fdff15d092bc827ca51 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Tue, 7 May 2024 13:15:55 -0700 Subject: [PATCH] chore: Prevent user setup from running for sddm under any circumstance. --- system_files/desktop/shared/usr/libexec/bazzite-user-setup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system_files/desktop/shared/usr/libexec/bazzite-user-setup b/system_files/desktop/shared/usr/libexec/bazzite-user-setup index f626c7ae..a9a1a43e 100755 --- a/system_files/desktop/shared/usr/libexec/bazzite-user-setup +++ b/system_files/desktop/shared/usr/libexec/bazzite-user-setup @@ -3,6 +3,9 @@ if [ "${EUID:-$(id -u)}" -eq 0 ]; then echo "Bazzite user setup ran as root user. Exiting." exit 0 +elif [ "$(whoami)" = "sddm" ]; then + echo "Bazzite user setup ran as sddm user. Exiting." + exit 0 fi IMAGE_INFO="/usr/share/ublue-os/image-info.json"