kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.36k stars 128 forks source link

Window.screen returns undefined for all windows #316

Closed ordnungswidrig closed 1 year ago

ordnungswidrig commented 1 year ago

After reboot (I guess because OS update) the following expression would return undefined for all window.screen on all windows

Window.all().map((w) => {
    Phoenix.log(w, "->", w.screen());
})
kasper commented 1 year ago

@ordnungswidrig Hey, sorry to hear! Could you verify that you have Accessibility enabled for Phoenix in System Preferences?

ordnungswidrig commented 1 year ago

Yes, I've double checked and even reinstalled Phoenix just to be sure. Same problem seem to exist with the window management extension of raycast. I wonder if any 3rd party software could interfere or some system management policy could be the problem?

ordnungswidrig commented 1 year ago

TFY: on a different machine running MacOS 12.6 everything is running as expected. 😕

kasper commented 1 year ago

@ordnungswidrig Peculiar! It’s safe to assume you have also restarted your computer?

ordnungswidrig commented 1 year ago

I did restart (again) and now everything is working as before. 😩 Not clear what the exact cause was and we might never know.

kasper commented 1 year ago

@ordnungswidrig My guess is that it’s a macOS bug. Glad to hear you got it sorted out!