Files
coredesktop/migrations/1795806218.sh
T
2026-11-27 12:48:07 -07:00

27 lines
941 B
Bash

#!/bin/bash
# CoreDesktop's top bar menu now comes as a package, gnome-shell-extension-coredesktop
# (updates.d/10-pacman.sh installs it from packages.conf before migrations run).
# Turn it on, as gnome/gnome-extensions.sh now does on a new install.
source "$HOME/.local/share/coredesktop/utils.sh"
UUID=coredesktop@federated.computer
# Without the package there's nothing to turn on. Fail, so this runs again on
# the next update.
if ! is_installed gnome-shell-extension-coredesktop; then
echo "gnome-shell-extension-coredesktop isn't installed; turning on the top bar menu next update."
exit 1
fi
# A copy installed by hand (the extension's make install) would load in place
# of the package's
USER_COPY="$HOME/.local/share/gnome-shell/extensions/$UUID"
if [ -d "$USER_COPY" ]; then
echo "Removing the hand-installed copy of the top bar menu; the package's replaces it."
rm -rf "$USER_COPY"
fi
enable_gnome_extension "$UUID"