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
|
# Define the tool path explicitly to avoid 'pipx run' overhead/warnings
|
||||||
EXTENSION_TOOL="$HOME/.local/bin/gnome-extensions-cli"
|
EXTENSION_TOOL="$HOME/.local/bin/gnome-extensions-cli"
|
||||||
|
|
||||||
log_info "Installing GNOME extensions..."
|
log_info "Installing GNOME extensions without user prompts (--filesystem backend)..."
|
||||||
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."
|
|
||||||
|
|
||||||
for extension in "${GNOME_EXTENSIONS[@]}"; do
|
for extension in "${GNOME_EXTENSIONS[@]}"; do
|
||||||
log_info "Processing $extension..."
|
log_info "Processing $extension..."
|
||||||
|
|
||||||
# Install (using the direct binary path)
|
# Install using the filesystem backend to bypass the GUI confirmation popups
|
||||||
"$EXTENSION_TOOL" install "$extension"
|
"$EXTENSION_TOOL" --filesystem install "$extension"
|
||||||
check_status "GNOME Extension $extension" "non-critical"
|
check_status "GNOME Extension $extension" "non-critical"
|
||||||
|
|
||||||
# Attempt to enable the extension (in case it's installed but disabled)
|
# Attempt to enable the extension (in case it's installed but disabled)
|
||||||
log_info "Ensuring $extension is enabled..."
|
log_info "Ensuring $extension is enabled..."
|
||||||
gnome-extensions enable "$extension"
|
gnome-extensions enable "$extension" || true
|
||||||
|
|
||||||
# Prompt user to press Enter to continue
|
|
||||||
read -p "Press Enter to continue (if a popup appeared, confirm it first)..."
|
|
||||||
done
|
done
|
||||||
|
|
||||||
log_info "Installing waywallen-display extension from GitHub..."
|
log_info "Installing waywallen-display extension from GitHub..."
|
||||||
|
|||||||
Reference in new issue
Block a user