koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.29k stars 209 forks source link

Can't run skhd: skhd: could not lock pid-file! abort.. #300

Closed szfkamil closed 11 months ago

szfkamil commented 1 year ago

I am unable to run skhd properly nor change the directory:

skhd -c ~/.skhdrc
skhd: could not lock pid-file! abort..

I've tried several solutions, which include:

I tried to delete the the pid files

pgrep -fl skhd
546 /opt/homebrew/bin/skhd
❯ kill 546
❯ ❯ pgrep -fl skhd
zsh: command not found: ❯

I checked if the pid file exists on my system and if the permissions may have issues, it seems they don't.

ls /tmp/skhd.pid
ls: /tmp/skhd.pid: No such file or directory
❯ ls -ld /tmp
lrwxr-xr-x@ 1 root  wheel  11 Sep  2 09:35 /tmp -> private/tmp
❯ ls -ld /private/tmp
drwxrwxrwt  11 root  wheel  352 Sep 24 09:38 /private/tmp

To my understanding then it's either something else on my system or a bug.

Environment: MacOS Ventura 13.5.2

tjex commented 11 months ago

Have you given access to skhd in system settings -> privacy and security -> accessibility?

szfkamil commented 11 months ago

Have you given access to skhd in system settings -> privacy and security -> accessibility?

I don't remember how, but I've solved the issue and forgot to close it. Thanks!