Use --filesystem backend for silent GNOME extension installs
This commit is contained in:
1 parent
d177b4dd9b
commit
4dfa614db2
1 file changed
+4
-9
+4
-9
@@ -512,23 +512,18 @@ install_gnome_extensions() {
|
||||
# Define the tool path explicitly to avoid 'pipx run' overhead/warnings
|
||||
EXTENSION_TOOL="$HOME/.local/bin/gnome-extensions-cli"
|
||||
|
||||
log_info "Installing GNOME extensions..."
|
||||
log_info "NOTE: A popup may appear asking you to confirm installation for each extension."
|
||||
log_info "If the extension is already installed, no popup will appear."
|
||||
log_info "Installing GNOME extensions without user prompts (--filesystem backend)..."
|
||||
|
||||
for extension in "${GNOME_EXTENSIONS[@]}"; do
|
||||
log_info "Processing $extension..."
|
||||
|
||||
# Install (using the direct binary path)
|
||||
"$EXTENSION_TOOL" install "$extension"
|
||||
# Install using the filesystem backend to bypass the GUI confirmation popups
|
||||
"$EXTENSION_TOOL" --filesystem install "$extension"
|
||||
check_status "GNOME Extension $extension" "non-critical"
|
||||
|
||||
# Attempt to enable the extension (in case it's installed but disabled)
|
||||
log_info "Ensuring $extension is enabled..."
|
||||
gnome-extensions enable "$extension"
|
||||
|
||||
# Prompt user to press Enter to continue
|
||||
read -p "Press Enter to continue (if a popup appeared, confirm it first)..."
|
||||
gnome-extensions enable "$extension" || true
|
||||
done
|
||||
|
||||
log_info "Installing waywallen-display extension from GitHub..."
|
||||
|
||||
Reference in new issue
Block a user