From 2303dd8f784e0e694f714f5ccb591e91ef169eb8 Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Mon, 8 Jun 2026 20:30:50 +0200 Subject: [PATCH] install: fix apt package array (quoted string caused single-arg error) Each apt package must be a separate array element; passing them as one quoted string caused apt-get to fail with "unable to locate package ". Co-Authored-By: Claude Sonnet 4.6 --- linux/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linux/install.sh b/linux/install.sh index 33d1832..fc58dae 100755 --- a/linux/install.sh +++ b/linux/install.sh @@ -15,11 +15,11 @@ BIN="$HOME/.local/bin/blitztext" echo "==> Checking host tools" need_pkg=() # python3-gi (PyGObject) must come from apt — it can't be pip-installed. -python3 -c "import gi" 2>/dev/null || need_pkg+=("python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3-0.1") -command -v xdotool >/dev/null || need_pkg+=("xdotool") -command -v notify-send >/dev/null || need_pkg+=("libnotify-bin") +python3 -c "import gi" 2>/dev/null || need_pkg+=(python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3-0.1) +command -v xdotool >/dev/null || need_pkg+=(xdotool) +command -v notify-send >/dev/null || need_pkg+=(libnotify-bin) if ! command -v pw-record >/dev/null && ! command -v arecord >/dev/null && ! command -v parecord >/dev/null; then - need_pkg+=("pipewire-bin") + need_pkg+=(pipewire-bin) fi if (( ${#need_pkg[@]} )); then echo " Missing system packages — installing now (requires sudo):"