Install the CoreDesktop top bar menu from the federated repo
shellcheck / shellcheck (push) Successful in 21s
shellcheck / shellcheck (push) Successful in 21s
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user