diff --git a/build/20-desktop-labwc.sh b/build/20-desktop-labwc.sh index fbd7a35..ff1535f 100755 --- a/build/20-desktop-labwc.sh +++ b/build/20-desktop-labwc.sh @@ -26,6 +26,7 @@ dnf5 install -y \ alacritty \ wl-clipboard \ xdg-user-dirs \ + libnotify \ upower \ power-profiles-daemon \ bolt \ diff --git a/scripts/notify-bootc-user.sh b/scripts/notify-bootc-user.sh index cc599a9..32a8683 100755 --- a/scripts/notify-bootc-user.sh +++ b/scripts/notify-bootc-user.sh @@ -38,9 +38,10 @@ $LOGGER -t "$TAG" "Update gestaged. Suche aktiven Desktop-User..." # ============================================================================= # 3. Aktiven Desktop-User auf seat0 ermitteln # ============================================================================= -# Wir filtern direkt aus der Session-Liste den Eintrag, der auf 'seat0' laeuft +# Wir filtern direkt aus der Session-Liste den Eintrag, der auf 'seat0' laeuft # und die Klasse 'user' (echter Desktop-Nutzer, kein Login-Screen) hat. -USER_ID=$($LOGINCTL list-sessions --no-legend 2>/dev/null | awk '$4 == "seat0" && $6 == "user" {print $2; exit}' || echo "") +# 'greeter' wird explizit ausgeschlossen (eigene greetd-Session, kein Daemon). +USER_ID=$($LOGINCTL list-sessions --no-legend 2>/dev/null | awk '$4 == "seat0" && $6 == "user" && $3 != "greeter" {print $2; exit}' || echo "") if [[ -z "$USER_ID" ]]; then $LOGGER -t "$TAG" "Update bereit, aber kein aktiver Desktop-User (Klasse: user) auf seat0 gefunden."