clipmenu

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

commit 486dbe31fa2725890a825f21b6bfbd1078a30de4
parent 72760da7a46ac570c220eb333dad40be1b5f68b7
Author: Chris Down <chris@chrisdown.name>
Date:   Sun, 11 Mar 2018 19:58:58 -0400

Recover without restarting if we deleted the entire clip directory

Diffstat:
Mclipmenud | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/clipmenud b/clipmenud @@ -190,6 +190,12 @@ while true; do cache_file_output="$(date +%s%N) $first_line" filename="$cache_dir/$(cksum <<< "$first_line")" + + # Recover without restart if we deleted the entire clip dir. + # It's ok that this only applies to the final directory. + # shellcheck disable=SC2174 + mkdir -p -m0700 "$cache_dir" + debug "Writing $data to $filename" printf '%s' "$data" > "$filename"