fix: Start PAM session in service to allow Wayland start at boot (#1551)

https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#PAMName=

Fixes #1548
This commit is contained in:
Russell Cloran authored and GitHub committed 2025-02-16 14:00:33 -03:00
1 parent 347e821d39
commit 38348720f0
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ install_graphical_backend()
echo_text ""
echo_text "Choose graphical backend"
echo_ok "Default is Xserver"
echo_text "Wayland is EXPERIMENTAL needs kms/drm drivers doesn't support DPMS and may need autologin"
echo_text "Wayland is EXPERIMENTAL, needs kms/drm drivers, and doesn't support DPMS"
echo_text ""
echo "Press enter for default (Xserver)"
read -r -e -p "Backend Xserver or Wayland (cage)? [X/w]" BACKEND
+2
View File
@@ -25,6 +25,8 @@ ExecStart="KS_DIR/scripts/KlipperScreen-start.sh"
# 'who'. This is needed since we replace (a)getty.
UtmpIdentifier=tty7
UtmpMode=user
# Create a PAM session to run pam-systemd, which creates /var/run/$UID
PAMName=%u
# A virtual terminal is needed.
TTYPath=/dev/tty7
TTYReset=yes