Browse Source

termux-tools: do not provide file path with slash at the beginning

See https://github.com/termux/termux-app/issues/995.
android-5
Leonid Plyushch 6 years ago
committed by Fredrik Fornwall
parent
commit
dda6fae8a5
  1. 2
      packages/termux-tools/build.sh
  2. 3
      packages/termux-tools/termux-open

2
packages/termux-tools/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.59
TERMUX_PKG_VERSION=0.60
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
TERMUX_PKG_ESSENTIAL=yes
TERMUX_PKG_DEPENDS="termux-am"

3
packages/termux-tools/termux-open

@ -40,6 +40,9 @@ if [ -f "$FILE" ]; then
FILE=`realpath "$FILE"`
fi
# Fix for issues on Android 8.1.
FILE=$(echo "$FILE" | sed 's/^\///')
am broadcast --user 0 \
-a $ACTION \
-n com.termux/com.termux.app.TermuxOpenReceiver \

Loading…
Cancel
Save