Fix opening image with sxiv

This commit is contained in:
Arun Prakash Jana 2019-12-13 08:33:02 +05:30
parent 2f6a4dd8ee
commit 2886abc90c
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ handle_multimedia() {
## Image
image/*)
if [ $GUI -ne 0 ] && which sxiv >/dev/null 2>&1; then
sxiv -q "$1" "$(dirname "${FPATH}")" &
sxiv -q "${FPATH}" &
exit 0
elif which viu >/dev/null 2>&1; then
viu -n "${FPATH}" | less -R