Migration: remove libayatana-appindicator, which cline-desktop needed

CoreDesktop installed it to build cline-desktop, which cline-desktop-bin
has since replaced, so machines installed before kept it where a fresh
install has none. Found by 30-upgrade-from-baseline at 0c0ddf5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 11:50:15 -07:00
co-authored by Claude Opus 5.5
parent 716fe83aa4
commit e2b62a9d13
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# CoreDesktop installed libayatana-appindicator for building cline-desktop,
# which cline-desktop-bin has since replaced. Remove it once, unless something
# else needs it: then leave it to go with that, as an orphan.
pkg=libayatana-appindicator
# The exact name: pacman -Q also matches a package that only provides it
[ "$(pacman -Qq "$pkg" 2> /dev/null)" = "$pkg" ] || exit 0
if [ "$(LC_ALL=C pacman -Qi "$pkg" | awk -F' *: *' '/^Required By/ { print $2 }')" != "None" ]; then
sudo pacman -D --asdeps "$pkg" > /dev/null
exit
fi
echo "Removing $pkg..."
sudo pacman -Rns --noconfirm "$pkg"