fix(camera): stop hardcoding /usr/bin in the camera scripts
Update PKGBUILD version / update-pkgver (push) Successful in 5s
Update PKGBUILD version / update-pkgver (push) Successful in 5s
This commit is contained in:
1 parent
a172f90c1c
commit
d476c7875a
3 files changed
+2
-8
No files matched your search
@@ -4,9 +4,6 @@
|
||||
|
||||
set -eu
|
||||
|
||||
PATH=/usr/bin:/bin
|
||||
export PATH
|
||||
|
||||
ID="${1:-}"
|
||||
VAL="${2:-}"
|
||||
|
||||
|
||||
@@ -4,9 +4,6 @@
|
||||
|
||||
set -eu
|
||||
|
||||
PATH=/usr/bin:/bin
|
||||
export PATH
|
||||
|
||||
# Cameras enumerate early, but a device behind a hub or dock can still be in flight. settle only
|
||||
# waits for events already queued, so a very late arrival can stay on until the user switches it —
|
||||
# accepted, since it is the same class of gap as plugging one in later.
|
||||
@@ -15,7 +12,7 @@ if command -v udevadm >/dev/null 2>&1; then
|
||||
fi
|
||||
|
||||
# Reuse the enumeration rather than carrying a second copy of the descriptor walk.
|
||||
LINES=$(/usr/bin/moonarch-camera-list || true)
|
||||
LINES=$(moonarch-camera-list || true)
|
||||
[ -n "$LINES" ] || exit 0
|
||||
|
||||
printf '%s\n' "$LINES" | while IFS='|' read -r id hw label state kind; do
|
||||
|
||||
@@ -14,4 +14,4 @@ case "$VAL" in
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
|
||||
pkexec /usr/bin/moonarch-camera-apply "$ID" "$VAL"
|
||||
pkexec moonarch-camera-apply "$ID" "$VAL"
|
||||
Reference in new issue
Block a user