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

Yabai scripting-addition payload (0x0) doesn't support macOS 14.1 (23B74) #1936

Closed
roelvangils opened this issue Oct 25, 2023 · 19 comments
Closed

Comments

@roelvangils
Copy link

Whoops, here we go again! 😁

yabai scripting-addition payload (0x0) doesn't support this macOS version!

I'm sure we'll get an update soon!

@bigduu
Copy link

bigduu commented Oct 30, 2023

do we have some update?

@roelvangils
Copy link
Author

I am also praying for an update, but let's not put pressure on @koekeishiya 😁

@jacobg-jellyfish
Copy link

jacobg-jellyfish commented Oct 31, 2023

no pressure, none at all ;P

@adkillick
Copy link

Hi folks, I've been a heavy user of the Scripting Addition and I'm looking forward to using it again! Like you, since upgrading to Sonoma I haven't been able to use it but I'm not getting that pop-up. I believe I have the SA properly loaded etc but I get no error messages or feedback in both log locations (/tmp/yabai_$USER.out.log and /tmp/yabai_$USER.err.log) when I try commands that require the SA. Should I be seeing something (popups?, errorlogs?).

@Explosion-Scratch
Copy link

This just started happening to me as well, happy to debug if needed. An update would be much appreciated, happy to help in any way I can!

@Mmasson-01
Copy link

Mmasson-01 commented Nov 8, 2023

+1 for this @koekeishiya. I tried to figure out what you did here: ea834ac for 14.0.0. Maybe a hint on your process to help fix it?

meanwhile, here's a temp workaround to switch spaces proposed by Koekeishiya

alt - 1 : skhd -k "ctrl + alt + cmd - 1"
alt - 2 : skhd -k "ctrl + alt + cmd - 2"
alt - 3 : skhd -k "ctrl + alt + cmd - 3"
alt - 4 : skhd -k "ctrl + alt + cmd - 4"
alt - 5 : skhd -k "ctrl + alt + cmd - 5"
alt - 6 : skhd -k "ctrl + alt + cmd - 6"
alt - 7 : skhd -k "ctrl + alt + cmd - 7"
alt - 8 : skhd -k "ctrl + alt + cmd - 8"

Map the shortcut in mission control to make it work.

@ipstone
Copy link

ipstone commented Nov 9, 2023

+1 for this @koekeishiya. I tried to figure out what you did here: ea834ac for 14.0.0. Maybe a hint on your process to help fix it?

meanwhile, here's a temp workaround to switch spaces proposed by Koekeishiya

alt - 1 : skhd -k "ctrl + alt + cmd - 1"
alt - 2 : skhd -k "ctrl + alt + cmd - 2"
alt - 3 : skhd -k "ctrl + alt + cmd - 3"
alt - 4 : skhd -k "ctrl + alt + cmd - 4"
alt - 5 : skhd -k "ctrl + alt + cmd - 5"
alt - 6 : skhd -k "ctrl + alt + cmd - 6"
alt - 7 : skhd -k "ctrl + alt + cmd - 7"
alt - 8 : skhd -k "ctrl + alt + cmd - 8"

Map the shortcut in mission control to make it work.

hello, I am new to yabai/skhd, but experiencing this same issue. I don't quite understand the point of using alt-1,2,3 ... would you elaborate what this is doing here with mapping it to :

alt - 1 : skhd -k "ctrl + alt + cmd - 1"

How is it different from using ctrl +1, 2, 3 ... as usually mapped for space switching using mission control?

Thanks

@Mmasson-01
Copy link

How is it different from using ctrl +1, 2, 3 ... as usually mapped for space switching using mission control?

@ipstone not different but then you can use ctrl for something else. The idea was at first to use this mapping as a fallback if Yabai throws an error, but it's not.

Here's the initial fallback solution:

alt - 1 : yabai -m space --focus 1 || skhd -k "ctrl + alt + cmd - 1"

@bigduu
Copy link

bigduu commented Nov 11, 2023

+1 for this @koekeishiya. I tried to figure out what you did here: ea834ac for 14.0.0. Maybe a hint on your process to help fix it?

meanwhile, here's a temp workaround to switch spaces proposed by Koekeishiya

alt - 1 : skhd -k "ctrl + alt + cmd - 1"
alt - 2 : skhd -k "ctrl + alt + cmd - 2"
alt - 3 : skhd -k "ctrl + alt + cmd - 3"
alt - 4 : skhd -k "ctrl + alt + cmd - 4"
alt - 5 : skhd -k "ctrl + alt + cmd - 5"
alt - 6 : skhd -k "ctrl + alt + cmd - 6"
alt - 7 : skhd -k "ctrl + alt + cmd - 7"
alt - 8 : skhd -k "ctrl + alt + cmd - 8"

Map the shortcut in mission control to make it work.

Yes, this is the root cause, the minor update from Apple, include update the Dock as well, so sa can't find the correct function address in the Dock.app, make the space functional not work, but I'm don't have the hack experiences, can't not help that.
Could you share the way how to find the address to help us to fix the issue? @koekeishiya

@koekeishiya koekeishiya added the addressed on master; not released Fixed upstream, but not yet released label Nov 11, 2023
@koekeishiya
Copy link
Owner

koekeishiya commented Nov 11, 2023

I'm not interested in spending my time teaching people how reverse engineering works, sorry.
There is a lot of material available on this topic already if you go looking.

@bigduu
Copy link

bigduu commented Nov 12, 2023

I'm not interested in spending my time teaching people how reverse engineering works, sorry. There is a lot of material available on this topic already if you go looking.

Yes, thanks for you reply, we can only find the other solution to instead of yabai way (like Mission Control Center, but it's really need long time animation) if this is really take much time, I mean the way e.g: through Console.app or Monitor.app to find the address not step by step.
Can I ask why yabai-sa need hook the Dock to implement space function? I find switch the spaces focus seems not need hook Dock, the CGSManagedDisplaySetCurrentSpace, CGSShowSpaces and CGSHideSpaces can do that, not sure the create and destroy need this, but seems the most user want to switch the space focus is enough.
Do you think it's possible? and if like that do you have some suggestion for that make we can skip the limitation?

@juliends
Copy link

Some issues (maybe all) are solved by the last commit
Focusing the next space is operational again 🎉

You will need to run Yabai from HEAD in order to try it for yourself

Thanks @koekeishiya 🙏

@bigduu
Copy link

bigduu commented Nov 12, 2023

Really good news! Thanks a lot @koekeishiya !!!!

@ccimponeriu1996
Copy link

Thanks so much you are a hero @koekeishiya

@erlingur
Copy link

Thanks a lot @koekeishiya!! Really appreciate it!

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Nov 12, 2023
@roelvangils
Copy link
Author

Thank you for all your hard work, @koekeishiya. All works perfectly fine again for me on 14.1.1. It feel like I have all my super powers back! 🪄

@kkreso
Copy link

kkreso commented Nov 13, 2023

Thank you for all your hard work, @koekeishiya. All works perfectly fine again for me on 14.1.1. It feel like I have all my super powers back! 🪄

Same here (14.1.1) - many thanks @koekeishiya .

@koekeishiya
Copy link
Owner

Works fine on 14.1.2.
14.2 will be added when it is out of beta.

@roelvangils
Copy link
Author

roelvangils commented Dec 1, 2023

I can confirm! It's safe to upgrade to 14.1.2.

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