From e267e029a287cf25627142bf1bc85d65c5845acd Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sat, 14 Mar 2026 12:22:15 +0100 Subject: [PATCH] Create wait-and-run.sh for first boot initialization Add wait-and-run.sh script to manage first boot process --- .../etc/skel/.config/firstboot/wait-and-run.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 files/etc/skel/.config/firstboot/wait-and-run.sh 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"