commit b30c01dbe3c8f1a13191cafb5171708ee80ef7d5
parent 04b71fb7a9b076b88959c71760a973efe6b399c5
Author: Chris Down <chris@chrisdown.name>
Date: Tue, 15 Mar 2022 18:50:26 +0000
clipmenud: Touch cache file at startup
May fix #182.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/clipmenud b/clipmenud
@@ -96,6 +96,10 @@ kill_background_jobs() {
(( ${#bg[@]} )) && kill -- "${bg[@]}" 2>/dev/null
}
+# Avoid clipmenu showing "no cache file yet" if we launched it before selecting
+# anything
+touch -- "$cache_file"
+
if [[ $1 == --help ]] || [[ $1 == -h ]]; then
cat << 'EOF'
clipmenud collects and caches what's on the clipboard. You can manage its