feat: Update-Service warnt bei neuem Theme-Branch
This commit is contained in:
1 parent
0fe4ffeb62
commit
d852b719fa
1 file changed
+11
@@ -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."
|
||||
|
||||
Reference in new issue
Block a user