diff --git a/files/etc/skel/.config/firstboot/wait-and-run.sh b/files/etc/skel/.config/firstboot/wait-and-run.sh index f4540a5..f3ecf7d 100644 --- a/files/etc/skel/.config/firstboot/wait-and-run.sh +++ b/files/etc/skel/.config/firstboot/wait-and-run.sh @@ -1,18 +1,15 @@ #!/usr/bin/env bash set -euo pipefail -# 1. Warten, bis der User‑DBus stabil ist +# Warten, bis wir wirklich in einer grafischen Session sind +until [ -n "${WAYLAND_DISPLAY:-}" ] || [ -n "${DISPLAY:-}" ]; do + sleep 1 +done + +# User‑DBus stabil until busctl --user list >/dev/null 2>&1; do sleep 1 done -# 2. Warten, bis die COSMIC‑Session wirklich läuft -until pgrep -x cosmic-session >/dev/null; do - sleep 1 -done - -# 3. Kurze Beruhigungsphase (Panels, Fokus, Autostarts) sleep 2 - -# 4. Wizard starten exec "$HOME/.config/firstboot/firstboot-setup.sh"