-
Notifications
You must be signed in to change notification settings - Fork 582
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
Version v0.9.96 breaks hs.window.filter.new #3170
Comments
+1 |
Upgraded last night but have not run into any issues so far. Running OS X Monterey |
Exactly the same crash caused by |
@Grazfather out of interest, have you previously used a tool like CleanMyMac to strip translations from macOS to save space? I'm not really sure why FWIW I can't reproduce the traceback you're seeing. I don't use either
@asmagill any ideas on this? |
Hah! I found the issue. Instead of finding Dock.app, it's finding Docker.app, which doesn't have that file.
|
> require("hs.application")("Dock")
hs.application: Docker (0x600001373838) hs.application: Dock (0x60000137f6b8) hs.application: Dock Extra (0x60000137d838)``` |
Swapping it out with: hs.application.applicationsForBundleID("com.apple.dock")[1] ...should do the trick? |
@Grazfather aha, good catch! |
… searching for 'Dock' which can match 'Docker'. Closes #3170
Confirmed that that fixes the issue > hs.window.filter.new(nil)
2022-03-29 18:10:06: -- Loading extensions: window.filter
hs.window.filter: ... (0x600001c03b80) |
@Grazfather a signed dev build with the fix will appear shortly here: https://github.com/Hammerspoon/hammerspoon/actions/runs/2061396652 I would very much appreciate it if you could give it a try and confirm the fix has worked. Thanks for reporting! |
The bundle contents of the Dock are used to determine what Mission Control calls space names when it's being displayed (so it can delete them appropriately). And yes, specifying by bundle id should fix that issue. I wonder, though, if |
And I really need to rewrite |
@asmagill Any objections if I push out 0.9.97 with the current fix for this? |
Go for it |
Sorry I couldn't verify with the release, but I had manually copied in the change and it was good. Downloaded the new release and I can (re) confirm that things work well. Thanks for the quick turnaround! |
Calling it with anything seems to crash. Haven't investigated.
This is on Big Sur v11.6.3, Intel
The text was updated successfully, but these errors were encountered: