yabai icon indicating copy to clipboard operation
yabai copied to clipboard

Would be REALLY GOOD to mention within SETUP Instructions.

Open obasekiosa opened this issue 1 year ago • 5 comments

Would be really good to mention in the setup

if you start yabai i.e. yabai --start-service and then disable accessibility it'll freeze your entire display/window. Mouse movements still work, window selections still work but nothing else, not the dock, not selections, not the button clicks for anything outside window selection. absolutely nothing. The only way out is a system restart and hope (hopefully you didn't add it) yabai --start-service is not in any start-up script.

obasekiosa avatar Oct 16 '23 01:10 obasekiosa

This also happens everytime yabai is updated and started, because the newer version does not have the accessibility permissions.

anujc4 avatar Oct 18 '23 14:10 anujc4

Yup, this has been also the case for me. Happens on EVERY update, to the point that I'm dreading doing 'brew upgrade`..... 🤦‍♂️

aragalie avatar Oct 25 '23 06:10 aragalie

This is a macOS permissions quirk; maybe just don't remove required permission from a piece of software while it is still running. Report a bug to Apple https://developer.apple.com/documentation/coregraphics/1454426-cgeventtapcreate?language=objc

Also the documentation literally says to stop yabai before upgrading and before uninstalling: Screenshot 2023-10-26 at 11 33 28

https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#updating-to-the-latest-release

Screenshot 2023-10-26 at 11 35 03

https://github.com/koekeishiya/yabai/wiki/Uninstalling-yabai

This also happens everytime yabai is updated and started, because the newer version does not have the accessibility permissions.

I don't have this issue on either on my machines (intel mbp2014 and newer m1 mbp) when using codesigned binaries.

koekeishiya avatar Oct 26 '23 09:10 koekeishiya

Yup, this has been also the case for me. Happens on EVERY update, to the point that I'm dreading doing 'brew upgrade`..... 🤦‍♂️

@aragalie you could pin yabai using brew pin koekeishiya/formulae/yabai and use brew list --pinned to check if it's pinned.

That way it won't upgrade automatically when you run brew upgrade so that you could do the yabai upgrade manually.

abdullah-kasim avatar Oct 30 '23 02:10 abdullah-kasim

Yup, this has been also the case for me. Happens on EVERY update, to the point that I'm dreading doing 'brew upgrade`..... 🤦‍♂️

@aragalie you could pin yabai using brew pin koekeishiya/formulae/yabai and use brew list --pinned to check if it's pinned.

That way it won't upgrade automatically when you run brew upgrade so that you could do the yabai upgrade manually.

Thanks @abdullah-kasim I think this is actually the best solution to prevent it! brew upgrade automatically upgrading yabai without my control is definitely the culprit of this issue.

With your pinning solution, when I would actually want to update yabai, I'll manually request brew to upgrade it, also making sure to first stop the service as @koekeishiya mentions above.

@koekeishiya I think perhaps this advice 👆 could actually also be put in the setup instructions on the Wiki? I would do a PR for it myself, but I'm not seeing a good way to contribute to the wiki...

aragalie avatar Oct 31 '23 19:10 aragalie