summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbrowse2
-rwxr-xr-xdmenu_browse2
-rwxr-xr-xopener4
-rwxr-xr-xviewhtml4
4 files changed, 6 insertions, 6 deletions
diff --git a/browse b/browse
index bdedbca..b9cc7c9 100755
--- a/browse
+++ b/browse
@@ -6,4 +6,4 @@ while getopts f: opt; do
esac
done
shift `expr $OPTIND - 1`
-./phttp $@ | xargs ./opener $OPENER_ARGS
+phttp $@ | xargs opener $OPENER_ARGS
diff --git a/dmenu_browse b/dmenu_browse
index fb98e43..1e15f84 100755
--- a/dmenu_browse
+++ b/dmenu_browse
@@ -1,4 +1,4 @@
#!/bin/sh
if URL=$(dmenu -p "Browse:" <bookmarks); then
- ./browse $URL
+ browse $URL
fi
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
diff --git a/viewhtml b/viewhtml
index 1e581ec..be7f5f9 100755
--- a/viewhtml
+++ b/viewhtml
@@ -53,7 +53,7 @@ proc click {w x y} {
global baseAddress
set range [$w tag prevrange href [$w index @$x,$y]]
set address [eval $w get $range]
- set result [exec ./browse -f ./viewhtml [makeAddress $address]]
+ set result [exec browse -f viewhtml [makeAddress $address]]
if {[llength $result] == 2} {
displayPage $w [lindex $result 0] [lindex $result 1]
}
@@ -72,7 +72,7 @@ proc displayNode {w node tagList} {
$w insert end "\n"
set lattr [array get $attributes]
set path [makeAddress [lindex $lattr [expr [lsearch -exact $lattr src] + 1]]]
- set localPath [lindex [split [exec ./phttp $path] { }] 2]
+ set localPath [lindex [split [exec phttp $path] { }] 2]
image create photo $path -file $localPath
$w image create end -image $path
$w insert end "\n"