kickoff icon indicating copy to clipboard operation
kickoff copied to clipboard

Prevent Multiple Instances

Open Oliver-Fish opened this issue 4 years ago • 1 comments

It would be great if I could prevent instances of kickoff from stacking on top of each other, ideally if kickoff is already open I would not like another instance to be launchable.

I can of course write a script to do this with a lock file, however, is this something you would consider natively supporting?

Oliver-Fish avatar Jan 28 '22 13:01 Oliver-Fish

Absolutely! It's a problem I've known about, but was too lazy too fix ^^ The canonical method seems to write your pid into $XDG_RUNTIME_DIR/<app>.pid and check on startup if there is a pid file and if so, to check if the pid still exists.

j0ru avatar Jan 28 '22 14:01 j0ru