cdown / clipmenu

Clipboard management using dmenu
MIT License
1.11k stars 90 forks source link

/usr/bin/clipmenud: line 152: /run/user/1986/clipmenu.6.dimitris//line_cache: No such file or directory #123

Closed DictumMortuum closed 4 years ago

DictumMortuum commented 4 years ago
Apr 02 21:55:52 crustulum systemd[677]: Stopped Clipmenu daemon.
Apr 02 21:55:52 crustulum systemd[677]: clipmenud.service: Succeeded.
Apr 02 21:55:52 crustulum systemd[677]: Stopping Clipmenu daemon...
Apr 02 21:55:52 crustulum clipmenud[524323]: /usr/bin/clipmenud: line 152: ((: > CM_MAX_CLIPS_THRESH : syntax error: operand expected (error token is "> CM_MAX_CLIPS_THRESH ")
Apr 02 21:55:52 crustulum clipmenud[1056336]: /usr/bin/clipmenud: line 152: /run/user/1986/clipmenu.6.dimitris//line_cache: No such file or directory
Apr 02 21:55:52 crustulum clipmenud[1056333]: : Connection refused
Apr 02 21:55:52 crustulum clipmenud[1056333]: xsel: Can't open display: (null)
Apr 02 21:55:52 crustulum clipmenud[1056330]: : Connection refused
Apr 02 21:55:52 crustulum clipmenud[1056330]: xsel: Can't open display: (null)
Apr 02 21:55:52 crustulum clipmenud[1056326]: Can't open X display
Apr 02 21:55:52 crustulum clipmenud[524323]: /usr/bin/clipmenud: line 152: ((: > CM_MAX_CLIPS_THRESH : syntax error: operand expected (error token is "> CM_MAX_CLIPS_THRESH ")
Apr 02 21:55:52 crustulum clipmenud[1056324]: /usr/bin/clipmenud: line 152: /run/user/1986/clipmenu.6.dimitris//line_cache: No such file or directory
Apr 02 21:55:52 crustulum clipmenud[1056322]: : Connection refused
Apr 02 21:55:52 crustulum clipmenud[1056322]: xsel: Can't open display: (null)
Apr 02 21:55:52 crustulum clipmenud[1056319]: : Connection refused
Apr 02 21:55:52 crustulum clipmenud[1056319]: xsel: Can't open display: (null)
Apr 02 21:55:52 crustulum clipmenud[1056315]: Can't open X display
Apr 02 21:55:52 crustulum clipmenud[524323]: /usr/bin/clipmenud: line 152: ((: > CM_MAX_CLIPS_THRESH : syntax error: operand expected (error token is "> CM_MAX_CLIPS_THRESH ")
Apr 02 21:55:52 crustulum clipmenud[1056313]: /usr/bin/clipmenud: line 152: /run/user/1986/clipmenu.6.dimitris//line_cache: No such file or directory
Apr 02 21:55:52 crustulum clipmenud[1056311]: : Connection refused
Apr 02 21:55:52 crustulum clipmenud[1056311]: xsel: Can't open display: (null)
Apr 02 21:55:52 crustulum clipmenud[1056308]: : Connection refused
Apr 02 21:55:52 crustulum clipmenud[1056308]: xsel: Can't open display: (null)
Apr 02 21:55:52 crustulum clipmenud[1056304]: Can't open X display
Apr 02 21:55:52 crustulum clipmenud[524323]: /usr/bin/clipmenud: line 152: ((: > CM_MAX_CLIPS_THRESH : syntax error: operand expected (error token is "> CM_MAX_CLIPS_THRESH ")
Apr 02 21:55:52 crustulum clipmenud[1056302]: /usr/bin/clipmenud: line 152: /run/user/1986/clipmenu.6.dimitris//line_cache: No such file or directory
Apr 02 21:55:52 crustulum clipmenud[1056300]: : Connection refused
Apr 02 21:55:52 crustulum clipmenud[1056300]: xsel: Can't open display: (null)
Apr 02 21:55:52 crustulum clipmenud[1056297]: : Connection refused
Apr 02 21:55:52 crustulum clipmenud[1056297]: xsel: Can't open display: (null)
Apr 02 21:55:52 crustulum clipmenud[1056293]: Can't open X display

Do you guys think that you can help me out with this one? It seems that the issue is here:

if (( CM_MAX_CLIPS )) && (( "$(wc -l < "$cache_file")" > CM_MAX_CLIPS_THRESH )); then

But if it got here, then the cache_file should already've been created

cdown commented 4 years ago

Hmm, I think this is possible in some rare circumstances.

This should be harmless (well, not being able to open the X display is not, but not related to this question...), but easy enough to fix. Thanks for the report :)