commit a9fb4c9823283d83321dd1a87ca3452b5d87b16c
parent a090177497c957ea3e3f2df8941ae2626a6123f5
Author: Chris Down <chris@chrisdown.name>
Date: Mon, 23 Mar 2020 17:41:50 +0000
Remove CM_ONESHOT debug message, it has never been useful
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/clipmenud b/clipmenud
@@ -90,7 +90,6 @@ fi
mkdir -p -m0700 "$cache_dir"
exec {session_lock_fd}> "$session_lock_file"
-
flock -x -n "$session_lock_fd" ||
die 2 "Can't lock session file -- is another clipmenud running?"
@@ -144,7 +143,6 @@ while true; do
fi
first_line=$(get_first_line "$data")
-
debug "New clipboard entry on $selection selection: \"$first_line\""
cache_file_output="$(date +%s%N) $first_line"
@@ -196,8 +194,5 @@ while true; do
flock -u "$lock_fd"
- if (( CM_ONESHOT )); then
- debug 'Oneshot mode enabled, exiting'
- break
- fi
+ (( CM_ONESHOT )) && break
done