Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QBlocker isn't delaying quitting #24

Open
Brunty opened this issue Feb 23, 2017 · 4 comments
Open

QBlocker isn't delaying quitting #24

Brunty opened this issue Feb 23, 2017 · 4 comments
Assignees
Labels

Comments

@Brunty
Copy link

Brunty commented Feb 23, 2017

iMac (27-inch, Late 2013)
OS X 10.10.5 (slightly older, I know)

For some reason, it seems QBlocker isn't blocking quitting (it's still running, I've had no errors), I've had it before on My Macbook (will get info on that later when I'm home) and have a suspicion it could be related to sleep / wake up (as I do that with my Macbook quite a lot)

If I quit Qblocker and run it again, it works fine.

@steve228uk
Copy link
Owner

If it's only happening after sleep/wake it's likely the KeyListener not working correctly.

This is the method that activates the listeners

https://github.com/steve228uk/QBlocker/blob/master/QBlocker/KeyListener.swift#L173

We're currently activating it in the didFinishLaunching delegate method but we may need to move this.

try KeyListener.sharedKeyListener.start()

We could try putting this in applicationDidBecomeActive but I'm not 100% sure this is called when the Mac awakes.

@steve228uk steve228uk self-assigned this Feb 24, 2017
@steve228uk steve228uk added the bug label Feb 24, 2017
@stek29
Copy link

stek29 commented May 16, 2017

@steve228uk Any updates on this?
Also, I believe the right way to do it is to use NSWorkspace.shared().notificationCenter and add observer for NSWorkspaceDidWake notification.

@harleyjcooper
Copy link

This appears to have gotten worse in Mojave. Just about every time the computer locks, it gives up control.

@AivanF
Copy link

AivanF commented Jan 13, 2020

Probably, I have the same problem! The application works ambiguously. I don't touch the settings, but sometimes it prevents Cmd+Q, and sometimes it doesn't. Even in a single wake/lock session. It is really annoying. My OS is 10.15.1 Catalina, and QBlocker version is the last one 1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants