diff options
-rwxr-xr-x | browse | 2 | ||||
-rwxr-xr-x | dmenu_browse | 2 | ||||
-rwxr-xr-x | opener | 4 | ||||
-rwxr-xr-x | viewhtml | 4 |
4 files changed, 6 insertions, 6 deletions
@@ -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 @@ -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 @@ -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" |