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

The document yabai.osax could not be opened after upgrading to Sonoma14.4 #2149

Closed
IanQS opened this issue Mar 9, 2024 · 3 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@IanQS
Copy link

IanQS commented Mar 9, 2024

So, as in the title, I updated to 14.4 and things stopped working. TL;DR I uninstalled and re-installed, but am running into issues with yabai.osax and apple's Script Editor.

Issues on Boot

The following are errors I see on log-in: logs, here on pastebin and it mentions something about reopening a file(?). When I click reopen, I'm presented with this first error:

Screenshot 2024-03-08 at 10 37 43 PM

I'm not really sure what the dictionary is or how it's relevant here? When I then click OK, I see a new popup

Screenshot 2024-03-08 at 10 37 48 PM

Recreating

I've tried uninstalling by following uninstall instructions and then installing via install instructions.

Steps to recreate:

  1. brew install koekeishiya/formulae/yabai
  2. disable SIP, per the instructions.

I've verified that SIP is disabled by running csrutil status and I see System Integrity Protection status: disabled.

  1. populated the file /private/etc/sudoers.d/yabai with the output of echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa" | sudo tee /private/etc/sudoers.d/yabai

  2. Add

yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa

to the top of the ~/.config/yabai/yabairc file.

  1. Reboot

  2. Run into the issues I mentioned at the very start

More information

MacOS Version: Sonoma 14.4
Yabai Version: yabai-v6.0.15
Xcode-select: xcode-select version 2406

@IanQS
Copy link
Author

IanQS commented Mar 9, 2024

When I manually start yabai, via

yabai --start-service, I see the same issues as above, in the screenshot. However, I'm able to run certain commands and they work fine:

yabai -m window --focus {north, south, east, west}
yabai -m window --space {1 - 10}

however, the command to focus on a different space is failing: yabai -m space --focus 2 results in cannot focus space due to an error with the scripting-addition.

@IanQS
Copy link
Author

IanQS commented Mar 9, 2024

I see #2147 which describes the same issue, but with a different error message. I've also seen the fix suggested there, which points to #2138, but I don't quite understand the fix and how it works, especially if it would even work in my case

@koekeishiya
Copy link
Owner

Track #2146

@koekeishiya koekeishiya added the duplicate This issue or pull request already exists label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants