From f0ca7048123f2985ccb4babc0338761a62d5295c Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sun, 19 Sep 2021 14:54:10 +0200 Subject: [PATCH] sxmo file only should open the selected file Opening all following files only is meaningfull for pictures or videos but crazy when openning pdfs with zathura by example. Signed-off-by: Stacy Harper Signed-off-by: Maarten van Gompel --- scripts/appscripts/sxmo_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/appscripts/sxmo_files.sh b/scripts/appscripts/sxmo_files.sh index c9a2989..d034c37 100755 --- a/scripts/appscripts/sxmo_files.sh +++ b/scripts/appscripts/sxmo_files.sh @@ -49,6 +49,6 @@ while true; do [ -d "$PICKED" ] && cd "$PICKED" && continue echo "$PICKED" | grep -E '^[*]$' && sxmo_open.sh -a ./* if [ -f "$PICKED" ] || [ "$PICKED" = "Open in terminal" ]; then - echo "$FILES" | sed -n -e "/$PICKED/,\$p" | tr '\n' '\0' | xargs -0 sxmo_open.sh -a + sxmo_open.sh -a "$PICKED" fi done