From 145f9171a08e949396074a101c792ff64d4201ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 17 Aug 2026 11:07:40 +0200 Subject: [PATCH] fix(triggershell): fall back to pyenv/local bin dirs when resolving openrgb-hue systemd --user services get a minimal PATH that never sources shell rc files, so pyenv shims and pip --user installs weren't found even though openrgb-hue was installed. Prepend the common user-install locations before the PATH lookup. --- scripts/openrgb-hue-apply.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/openrgb-hue-apply.sh b/scripts/openrgb-hue-apply.sh index 187654d..27d6675 100755 --- a/scripts/openrgb-hue-apply.sh +++ b/scripts/openrgb-hue-apply.sh @@ -1,6 +1,11 @@ #!/usr/bin/env bash set -euo pipefail +# Services (e.g. systemd --user units) run with a minimal PATH that skips +# shell-init-only additions like pyenv shims or pip's --user bin dir, even +# though those tools are installed. Add the common locations as a fallback. +export PATH="$HOME/.local/bin:$HOME/.pyenv/shims:$PATH" + 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