From e87c356c8104c7c016c41fe477d0654056847343 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 13 Apr 2026 16:38:55 +0530 Subject: injecting variables into scripts so that they use the actual path of th binaries of the packages --- modules/scripts/screen-recording.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/scripts/screen-recording.sh') diff --git a/modules/scripts/screen-recording.sh b/modules/scripts/screen-recording.sh index c0e8525..5bd5ee9 100644 --- a/modules/scripts/screen-recording.sh +++ b/modules/scripts/screen-recording.sh @@ -34,10 +34,10 @@ if command -v xwininfo >/dev/null 2>&1; then fi if [ "$SELECT_MODE" = true ]; then - if command -v slop >/dev/null 2>&1; then + if command -v "$SLOP" >/dev/null 2>&1; then echo -e "${YELLOW}Select a window or draw a box...${NC}" # slop output: 123 456 10 20 - read -r W H X Y < <(slop -f "%w %h %x %y" --nokeyboard) + read -r W H X Y < <("$SLOP" -f "%w %h %x %y" --nokeyboard) if [ -n "$W" ]; then WIDTH=$W @@ -67,7 +67,7 @@ echo "File: $FILENAME" echo "------------------------------------------------" # We pass arguments explicitly here to avoid "Unrecognized option" shell errors -ffmpeg -hide_banner \ +"$FFMPEG" -hide_banner \ -f x11grab \ -video_size "${WIDTH}x${HEIGHT}" \ -framerate 30 \ -- cgit v1.2.3