From edab4fe6a6a6aa5ff0e34f90e3521336d1bb490b Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Tue, 29 Sep 2026 18:45:44 +0200 Subject: [PATCH] fixed missing notify for update-script --- build/20-desktop-labwc.sh | 1 + scripts/notify-bootc-user.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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."