Browse Source

termux-open: Handle relative paths

android-5
Fredrik Fornwall 8 years ago
parent
commit
83686ac5af
  1. 7
      packages/termux-tools/termux-open

7
packages/termux-tools/termux-open

@ -35,10 +35,15 @@ if [ $# != 1 ]; then
show_usage show_usage
fi fi
FILE="$1"
if [ -f "$FILE" ]; then
FILE=`realpath "$FILE"`
fi
am broadcast --user 0 \ am broadcast --user 0 \
-a $ACTION \ -a $ACTION \
-n com.termux/com.termux.app.TermuxOpenReceiver \ -n com.termux/com.termux.app.TermuxOpenReceiver \
$EXTRAS \ $EXTRAS \
-d "$1" \ -d "$FILE" \
> /dev/null > /dev/null

Loading…
Cancel
Save