From ffd14d72701f73c433bec8399efcbcbbc7667577 Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" Date: Thu, 21 May 2026 13:41:59 +0000 Subject: [PATCH] setup_wayland.sh aktualisiert --- setup_wayland.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/setup_wayland.sh b/setup_wayland.sh index bd3695b..6d75121 100644 --- a/setup_wayland.sh +++ b/setup_wayland.sh @@ -21,7 +21,7 @@ fi # 2. Repositories aktualisieren und Basispakete installieren echo -e "\n${C_GREEN}[1/6] Installiere Systempakete (Wayland, Labwc, Rust)...${C_RESET}" apk update -apk add wayland labwc foot dbus seatd cargo wayland-dev libxkbcommon-dev build-base bash nano +apk add wayland labwc foot dbus seatd cargo wayland-dev libxkbcommon-dev build-base bash nano ttf-dejavu ttf-liberation font-noto # 3. seatd aktivieren und starten (wichtig für Grafik- und Input-Rechte) echo -e "\n${C_GREEN}[2/6] Konfiguriere und starte den seatd-Dienst...${C_RESET}" @@ -93,7 +93,14 @@ PROFILE_FILE="$USER_HOME/.profile" if ! grep -q "labwc" "$PROFILE_FILE" 2>/dev/null; then echo -e "\n${C_GREEN}[6/6] Richte automatischen Desktop-Start in .profile ein...${C_RESET}" cat << 'EOF' >> "$PROFILE_FILE" - +# XDG Runtime Directory für Wayland initialisieren +if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir + if [ ! -d "$XDG_RUNTIME_DIR" ]; then + mkdir -p "$XDG_RUNTIME_DIR" + chmod 0700 "$XDG_RUNTIME_DIR" + fi +fi # Startet Wayland/Labwc automatisch, wenn du dich auf TTY1 einloggst if [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then exec dbus-run-session labwc