From d852b719fa1ae422b21d9ead7aede7c0253af51a Mon Sep 17 00:00:00 2001 From: humocs-man Date: Mon, 19 Oct 2026 01:13:31 +0200 Subject: [PATCH] feat: Update-Service warnt bei neuem Theme-Branch --- scripts/notify-bootc-user.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/notify-bootc-user.sh b/scripts/notify-bootc-user.sh index b68aef6..6067cc5 100755 --- a/scripts/notify-bootc-user.sh +++ b/scripts/notify-bootc-user.sh @@ -67,6 +67,17 @@ if have "$FLATPAK"; then $FLATPAK uninstall --unused -y 2>&1 \ | grep -v -E "Nothing unused to uninstall|No installed refs" \ || true + # Hinweis, falls fuer die gepinnten Theme-Extensions ein neuerer + # Branch verfuegbar ist (flatpak update wechselt Branches nicht + # automatisch). Dann manuell: flatpak install flathub // + for theme in org.gtk.Gtk3theme.adw-gtk3 org.gtk.Gtk3theme.adw-gtk3-dark; do + installed_branch=$($FLATPAK info "$theme" 2>/dev/null | awk -F: '/^[[:space:]]*Branch:/{gsub(/ /,"",$2); print $2}') + for avail in $($FLATPAK remote-ls flathub 2>/dev/null | awk -v r="$theme" '$2==r{print $4}'); do + if [[ -n "$installed_branch" && "$avail" != "$installed_branch" ]]; then + $LOGGER -t "$TAG" "HINWEIS: $theme hat neueren Branch '$avail' (installiert: '$installed_branch'). Manuell wechseln mit: flatpak install flathub $theme//$avail" + fi + done + done $LOGGER -t "$TAG" "Flatpak-Update abgeschlossen." else $LOGGER -t "$TAG" "Flatpak nicht installiert, ueberspringe Flatpak-Update."