feat: Update-Service warnt bei neuem Theme-Branch

This commit is contained in:
humocs-man committed 2026-10-19 01:13:31 +02:00
1 parent 0fe4ffeb62
commit d852b719fa
1 file changed
+11
+11
View File
@@ -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 <ref>//<branch>
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."