diff --git a/files/etc/skel/.config/firstboot/wait-and-run.sh b/files/etc/skel/.config/firstboot/wait-and-run.sh new file mode 100644 index 0000000..f4540a5 --- /dev/null +++ b/files/etc/skel/.config/firstboot/wait-and-run.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +set -euo pipefail + +# 1. Warten, bis der User‑DBus stabil ist +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"