nixpkgs/pkgs/by-name/do/dotool/fix-paths.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
808 B
Diff
Raw Normal View History

2023-05-06 14:07:09 +00:00
diff --git a/dotoolc b/dotoolc
index e2f7bba..6d1879e 100755
--- a/dotoolc
+++ b/dotoolc
@@ -7,7 +7,7 @@ is $DOTOOL_PIPE else /tmp/dotool-pipe.' >&2
fi
2024-07-11 13:52:17 +00:00
2023-05-06 14:07:09 +00:00
fifo_being_read(){
- [ -p "$1" ] && /bin/echo 1<>"$1" >"$1"
+ [ -p "$1" ] && echo 1<>"$1" >"$1"
}
2024-07-11 13:52:17 +00:00
2023-05-06 14:07:09 +00:00
p="${DOTOOL_PIPE:-/tmp/dotool-pipe}"
diff --git a/dotoold b/dotoold
2024-07-11 13:52:17 +00:00
index 48a7789..c405312 100755
2023-05-06 14:07:09 +00:00
--- a/dotoold
+++ b/dotoold
2024-07-11 13:52:17 +00:00
@@ -12,7 +12,7 @@ for the pipe is $DOTOOL_PIPE else /tmp/dotool-pipe.' >&2
done
2023-05-06 14:07:09 +00:00
fifo_being_read(){
- [ -p "$1" ] && /bin/echo 1<>"$1" >"$1"
+ [ -p "$1" ] && echo 1<>"$1" >"$1"
}
2024-07-11 13:52:17 +00:00
2023-05-06 14:07:09 +00:00
p="${DOTOOL_PIPE:-/tmp/dotool-pipe}"
2024-07-11 13:52:17 +00:00
@@ -25,5 +25,5 @@ fi
2023-05-06 14:07:09 +00:00
rm -f -- "$p" || exit 1
trap 'rm -f -- "$p"; pkill -P $$; trap - EXIT; exit' EXIT INT TERM HUP
mkfifo -m 660 "$p" || exit 1
2024-07-11 13:52:17 +00:00
-dotool "$@" <> "$p" &
+@dotool@ "$@" <> "$p" &
wait $!