summaryrefslogtreecommitdiff
path: root/opener
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-07-24 23:10:47 +0200
committerAki <please@ignore.pl>2021-07-24 23:10:47 +0200
commit9dca05999d355deb225938ba4f57858ca27ca130 (patch)
treebe930230eec6f600a53847b20410935d0644ee59 /opener
parent4910f79dd2553af5ed83a2c46f5e42f99424ac59 (diff)
downloadbrowse-master.zip
browse-master.tar.gz
browse-master.tar.bz2
Utilities now assume they are available in PATHHEADmaster
Diffstat (limited to 'opener')
-rwxr-xr-xopener4
1 files changed, 2 insertions, 2 deletions
diff --git a/opener b/opener
index 320ff7f..2903949 100755
--- a/opener
+++ b/opener
@@ -10,7 +10,7 @@ shift `expr $OPTIND - 1`
case "$1" in
application/pdf) VIEWER=zathura;;
image/*) VIEWER=sxiv;;
- text/html*) VIEWER=./viewhtml;;
+ text/html*) VIEWER=viewhtml;;
text/*) VIEWER=less;;
*) echo "\e[31m$1\e[0m $2 $3" >&2; exit 1;;
esac
@@ -20,7 +20,7 @@ if [ $VIEWER = $ORIGIN_VIEW ]; then
else
case $VIEWER in
zathura | sxiv | less) setsid $VIEWER $3;;
- \./viewhtml) setsid $VIEWER $3 $2;;
+ viewhtml) setsid $VIEWER $3 $2;;
*) echo "\e[31m$VIEWER\e[0m $@" >$2; exit 1;;
esac
fi