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

Cannot log out #40

Open
romanprocopie opened this issue Jul 16, 2019 · 1 comment
Open

Cannot log out #40

romanprocopie opened this issue Jul 16, 2019 · 1 comment

Comments

@romanprocopie
Copy link
Contributor

Although I can see there is subscription to NSWorkspaceSessionDidResignActiveNotification
and I also tried to add a subscription to NSWorkspaceWillPowerOffNotification,enforcing a rfbShutDown and a clean exit, the user cannot accomplish the logout/reboot.

At some point Mac OS pops up a message saying Vine is preventing it.

If you close the session or stop the listening server the logout/reboot will continue instantly.

I thought it might be because I am running it as a launch agent (just a guess) but I can see same behaviour when running it manually from the GUI session.

Are there any ideas of why it may happen ? I am happy to continue googling as of why the notifications don't work, but so far it turns out that the code already has implemented all bright suggestions (except for subscription to NSWorkspaceWillPowerOffNotification whihc I did with not much luck)

@stweil
Copy link
Owner

stweil commented Jul 17, 2019

I have no idea, but it would be great if someone finds a solution and sends a pull request.

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

No branches or pull requests

2 participants