From 644ee876e1b468fd5708b8ad84e5e050f2fcce93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 17 Aug 2026 11:03:54 +0200 Subject: [PATCH] fix(triggershell): resolve openrgb-hue via PATH instead of hardcoded venv Avoids baking in a machine-specific absolute path, and fails with install instructions if the binary isn't found. --- scripts/openrgb-hue-apply.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/openrgb-hue-apply.sh b/scripts/openrgb-hue-apply.sh index fa86b3f..187654d 100755 --- a/scripts/openrgb-hue-apply.sh +++ b/scripts/openrgb-hue-apply.sh @@ -1,4 +1,11 @@ #!/usr/bin/env bash set -euo pipefail -exec /home/valknar/Projekte/openrgb-hue/.venv/bin/openrgb-hue apply "$SCENE" "$@" +if ! command -v openrgb-hue >/dev/null 2>&1; then + echo "error: 'openrgb-hue' was not found on PATH." >&2 + echo "Install it with:" >&2 + echo " pip install --index-url https://dev.pivoine.art/api/packages/valknar/pypi/simple/ --extra-index-url https://pypi.org/simple openrgb-hue" >&2 + exit 1 +fi + +exec openrgb-hue apply "$SCENE" "$@"