clipmenu

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

commit a3f0897aee7b1ebe590260dc51a46999367c95e9
parent 333ebc513da4594be2f990645977d5dcac252938
Author: Axel Dahlberg <axel.dahlberg12@gmail.com>
Date:   Thu, 11 Feb 2021 15:23:51 +0100

Create status file after cache directory

Diffstat:
Mclipmenud | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clipmenud b/clipmenud @@ -15,7 +15,6 @@ read -r -a selections <<< "$CM_SELECTIONS" cache_dir=$(clipctl cache-dir) cache_file=$cache_dir/line_cache status_file=$cache_dir/status -echo "enabled" > "$status_file" # lock_file: lock for *one* iteration of clipboard capture/propagation # session_lock_file: lock to prevent multiple clipmenud daemons @@ -118,6 +117,7 @@ fi # It's ok that this only applies to the final directory. # shellcheck disable=SC2174 mkdir -p -m0700 "$cache_dir" +echo "enabled" > "$status_file" exec {session_lock_fd}> "$session_lock_file" flock -x -n "$session_lock_fd" ||