malob / DarkMode.spoon

Hammerspoon Spoon to enable, disable, and toggle DarkMode either manually, or on a schedule (by default enabled on sunset and disabled as sunrise).
3 stars 0 forks source link

Permissions issue on Mojave #2

Closed andreiborisov closed 6 years ago

andreiborisov commented 6 years ago

I guess this issue should be addressed upstream, but still, maybe you can still with it. Spoon doesn't work (doesn't toggle dark mode), and my guess, this is because Hammerspoon didn't ask for permission to automate System Events.app (or asked, but since this feature released in half-broken state in Mojave, it bugged). Can you confirm that on your machine this permission is given to Hammerspoon? Or maybe you even know how to fix this?

malob commented 6 years ago

I don't know how/when it was enabled, but on my machine in "System Preferences -> Security & Privacy -> Privacy -> Automation", "System Events" is checked off under "Hammerspoon".

andreiborisov commented 6 years ago

Thanks, it was fixed upstream in Hammerspoon 0.9.73

malob commented 6 years ago

Sweet. I just finished a fairly major refactor of the code for this spoon that fixed a bunch of bugs along the way. If you come across any issues, do let me know.