Browse Source

Fix problems introduced by SC zealotry

 *  dmenu really needs to have the arguments split,
 *  and uris use cat to enable support for - as STDIN
Alois Mahdal 9 years ago
parent
commit
a95b417e33
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/libexec/saturnin-dmenu
  2. 1
    1
      src/libexec/saturnin-uris

+ 1
- 1
src/libexec/saturnin-dmenu View File

@@ -43,4 +43,4 @@ do_split() {
43 43
     cut "-d$delim" -f"$field"
44 44
 }
45 45
 
46
-dmenu -b -i -l "$lines" "$(style)" "$@" | $maybe_split
46
+dmenu -b -i -l "$lines" $(style) "$@" | $maybe_split

+ 1
- 1
src/libexec/saturnin-uris View File

@@ -56,7 +56,7 @@ debug -v src
56 56
 
57 57
 case "$src" in
58 58
     args) uri="$(echo "$@" | saturnin_urimagic__scan)" ;;
59
-    file) uri="$(<"$file" saturnin_urimagic__scan)" ;;
59
+    file) uri="$(cat "$file" | saturnin_urimagic__scan)" ;;
60 60
     xpri) uri="$(clipln pri | saturnin_urimagic__scan)" ;;
61 61
     xsec) uri="$(clipln sec | saturnin_urimagic__scan)" ;;
62 62
     xclp) uri="$(clipln clp | saturnin_urimagic__scan)" ;;