The command is
ps-watcher $HOME/ps-watcher.cfg
Is I run it as normal user, I got this error:
Unable to open file handle FH for file '/var/run/ps-watcher.pid': Permission denied
The content of ps-watcher.cfg is:
[tint2]
occurs = none
action = /usr/bin/tint2
Ironically, the man page says ps-watcher doesn't need to be run as root.
There's nothing in the ps command or ps-watcher, that requires one to run this daemon as root.
How to avoid the error? Can I change the path of /var/run/ps-watcher.pid?