slitaz-tools rev 987
tazbox/video: fix absolute path args
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 28 09:26:54 2016 +0200 (2016-05-28) |
parents | 0b155bca1ebf |
children | 587e4c95f901 |
files | tazbox/tazbox |
line diff
1.1 --- a/tazbox/tazbox Fri May 27 09:52:28 2016 +0200 1.2 +++ b/tazbox/tazbox Sat May 28 09:26:54 2016 +0200 1.3 @@ -634,6 +634,7 @@ 1.4 1.5 # Get filename 1.6 [ "$1" ] && file="$PWD/$(basename "$1")" 1.7 + [ "${1:0:1}" == "/" ] && file="$1" 1.8 [ -s "$file" ] || file="$(yad --file --width='500' --height='400' \ 1.9 --window-icon $icon --title "$(_ "Select the video file")" --center)" 1.10 [ -s "$file" ] || return