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>
master
Stacy Harper 3 years ago committed by Maarten van Gompel
parent a035f747c8
commit f0ca704812
  1. 2
      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

Loading…
Cancel
Save