Hammerspoon / hammerspoon

Staggeringly powerful macOS desktop automation with Lua
http://www.hammerspoon.org
MIT License
12.08k stars 582 forks source link

hammerspoon doesn't play nice with spotify's pwa #2839

Open oldsouless opened 3 years ago

oldsouless commented 3 years ago

Env

Macos Big Sur latest Hammerspoon latest Application: Spotify's pwa bundle

Issue

cmsj commented 3 years ago

at a guess, I would imagine that this is actually the PWA crashing when something sends it accessibility events. Are you using something like hs.window.filter in your Hammerspoon config? If so, that would likely be interrogating the PWA when it launches, to find out some information about it, and some bug in the PWA causes it to then crash.

It's possible we might be able to figure out some ways to ignore that particular app if it's unstable - I wonder if you open Console.app, does the PWA show up in the Crash Reports section?

oldsouless commented 3 years ago

I indeed use hs.window.filter.new():setCurrentSpace(true):setDefaultFilter{}) in my config; commenting that out fixes the issue but ideally wouldn't have to; the pwa doesn't appear in crash reports.

cmsj commented 3 years ago

Have a look at http://www.hammerspoon.org/docs/hs.window.filter.html#ignoreAlways - if you can figure out the right window title to put in there it might help?

oldsouless commented 3 years ago

Confirmed working with ignoreAlways and the 'title' but would prefer to use the bundle id instead, is that an option?