setup_wayland.sh aktualisiert
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user