- Added in Chrome buttons for xkeysnail, caret check no detects self to prevent duplicate runs.

This commit is contained in:
Ben Reaves
2020-04-26 17:28:22 -05:00
parent 754b18066f
commit 362c48953e
2 changed files with 9 additions and 0 deletions

View File

@@ -1,5 +1,12 @@
#!/bin/bash
for pid in $(pidof -x caret_status_xkey.sh); do
if [ $pid != $$ ]; then
echo "[$(date)] : caret_status_xkey.sh : Process is already running with PID $pid"
exit 1
fi
done
mkdir -p /tmp/kinto
echo "0" > /tmp/kinto/caret