clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit f576a116fde40328e5c0967b90f476b5416acc9b
parent 35a3cb2e8ad43e8bb796570379ccd80d0b3a37bc
Author: Chris Down <chris@chrisdown.name>
Date:   Sun, 29 Oct 2017 10:40:38 +0000

Don't attempt to write to sockets represented as files

Fixes #54.

Diffstat:
Mclipmenud | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/clipmenud b/clipmenud @@ -14,7 +14,10 @@ lock_timeout=2 xsel_log=/dev/null for file in /proc/self/fd/2 /dev/stderr; do - [[ -e "$file" ]] || continue + [[ -f "$file" ]] || continue + # In Linux, it's not possible to write to a socket represented by a file + # (for example, /dev/stderr or /proc/self/fd/2). See issue #54. + [[ -f "$(readlink "$file")" ]] || continue xsel_log="$file" break done