~mil/sxmo-utils

f0ca7048123f2985ccb4babc0338761a62d5295c — Stacy Harper 2 months ago a035f74
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 <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
1 files changed, 1 insertions(+), 1 deletions(-)

M scripts/appscripts/sxmo_files.sh
M scripts/appscripts/sxmo_files.sh => scripts/appscripts/sxmo_files.sh +1 -1
@@ 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