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

hs.screen.setInvertedPolarity does not sync with Accessibility system settings on macOS Sequoia 15.1.1 #3717

Open
k-obrien opened this issue Nov 22, 2024 · 2 comments

Comments

@k-obrien
Copy link
Contributor

Hammerspoon v1.0.0 (6864)
macOS Sequoia 15.1.1

Expected outcome: Invert colors in System Settings > Accessibility > Display is disabled after calling hs.screen.setInvertedPolarity(false)

Actual outcome: Invert colors in System Settings > Accessibility > Display remains enabled after calling hs.screen.setInvertedPolarity(false)

Steps to repro:

  1. Execute hs.screen.setInvertedPolarity(true) in HS console
  2. Confirm Invert colors is enabled in System Settings > Accessibility > Display
  3. Navigate back to System Settings > Accessibility from Display
  4. Execute hs.screen.setInvertedPolarity(false) in HS console

Colors will return to non-inverted state but Invert colors is still enabled in System Settings > Accessibility > Display and clicking on an unfocused window will re-apply inverted colors.

@latenitefilms
Copy link
Contributor

I haven't looked into the code yet, but it's entirely possible you might need to give Hammerspoon Full Disk Access if it's modifying property list files.

@k-obrien
Copy link
Contributor Author

I haven't looked into the code yet, but it's entirely possible you might need to give Hammerspoon Full Disk Access if it's modifying property list files.

That's a possibility and I'll give it a shot but, oddly, enabling the feature is reflected 100% reliably.

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

No branches or pull requests

2 participants