migration fixes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$HOME/.local/share/coredesktop/utils.sh"
|
||||
|
||||
is_installed() {
|
||||
command -v gnome-shell &>/dev/null
|
||||
}
|
||||
@@ -7,12 +9,7 @@ is_installed() {
|
||||
run_update() {
|
||||
echo "Updating GNOME extensions..."
|
||||
|
||||
# Reinstall gext if missing or broken (e.g. its pipx venv went stale after a Python upgrade)
|
||||
if ! ~/.local/bin/gext --version &> /dev/null; then
|
||||
echo "gext missing or broken, reinstalling..."
|
||||
pipx uninstall gnome-extensions-cli 2>/dev/null || true
|
||||
pipx install --python "$(which python3)" gnome-extensions-cli --system-site-packages
|
||||
fi
|
||||
ensure_gext || return 1
|
||||
|
||||
# Update every enabled user extension to the latest version for this GNOME Shell.
|
||||
# The filesystem backend writes directly to ~/.local/share/gnome-shell/extensions;
|
||||
|
||||
Reference in New Issue
Block a user