Once I start clipmenud with systemd, clipmenu work fine. But after I use clipdel to delete clipboard content with command
clipdel -d '.*'
No matter how much I copy a text, clipmenu cannot list anything anymore. (xclip -o works fine though)
Step to Reproduce
Start clipmenud with systemd
systemctl --user start clipmenud.service
Copy some random text and try to list clipboard with clipmenu. It will work just fine.
Clear clipboard with command
clipdel -d '.*'
Copy some random text again.
Clipmenu just stop working, cannot list any text.
Workaround
I have to restart clipmenud service after clear clipboard with clipdel to make clipmenu work again.
systemctl --user restart clipmenud.service
More Explain
Since I use $XDG_RUNTIME_DIR as a temp dir, seems like clipmenud create a temp directory in "/run/user/1000" with necessary temp file in the directory name "clipmenu.6.csaratakij"
This is my absolute path to temp dir : "/run/user/1000/clipmenu.6.csaratakij"
.
But once I clear clipboard with clipdel, It remove "clipmenu.6.csaratakij" directory and any attempt to create temp files inside this directory will not works since this directory is no longer exists. That's why clipmenu keep complaining the 'line_cache" file does not exists I guess?
.
Once I restart clipmenud with systemd, It will create "clipmenu.6.csaratakij" directory and everything will work again.
.
Possible Solution
Just remove all contents inside temp dir or create temp dir if not exists before trying to create any temp file when using clipdel?
Setup
Issue
Once I start clipmenud with systemd, clipmenu work fine. But after I use clipdel to delete clipboard content with command
No matter how much I copy a text, clipmenu cannot list anything anymore. (xclip -o works fine though)
Step to Reproduce
Workaround
I have to restart clipmenud service after clear clipboard with clipdel to make clipmenu work again.
More Explain
Since I use $XDG_RUNTIME_DIR as a temp dir, seems like clipmenud create a temp directory in "/run/user/1000" with necessary temp file in the directory name "clipmenu.6.csaratakij" This is my absolute path to temp dir : "/run/user/1000/clipmenu.6.csaratakij" . But once I clear clipboard with clipdel, It remove "clipmenu.6.csaratakij" directory and any attempt to create temp files inside this directory will not works since this directory is no longer exists. That's why clipmenu keep complaining the 'line_cache" file does not exists I guess? . Once I restart clipmenud with systemd, It will create "clipmenu.6.csaratakij" directory and everything will work again. .
Possible Solution
Just remove all contents inside temp dir or create temp dir if not exists before trying to create any temp file when using clipdel?