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

Focusing desktop not working on Big Sur #712

Closed
capaldo opened this issue Nov 13, 2020 · 14 comments
Closed

Focusing desktop not working on Big Sur #712

capaldo opened this issue Nov 13, 2020 · 14 comments
Labels
question Request for information or help, not an issue

Comments

@capaldo
Copy link

capaldo commented Nov 13, 2020

Attempting to focus a desktop via yabai -m window --space 2 does not work. I tried running sudo yabai --load-sa but the issue persists.

Edit: To add, window shadows and opacity are also not working.

@marcusmyers
Copy link

When running the sudo yabai --load-sa I get the following error:

could not retrieve task port for pid: 3849
yabai: scripting-addition failed to inject payload into Dock.app!

@capaldo Is that what you receive as well?

@SxC97
Copy link

SxC97 commented Nov 13, 2020

I get the following error when running sudo yabai --load-sa

could not load bootstrap object file
yabai: scripting-addition failed to inject payload into Dock.app!

@chilledsaint0716
Copy link

chilledsaint0716 commented Nov 13, 2020

Attempting to focus a desktop via yabai -m space --focus 3 does not work either.
I got the following error:
cannot focus space due to an error with the scripting-addition.

@koekeishiya
Copy link
Owner

Make sure sip is (partially) disabled, and reinstall the scripting-addition. check the wiki for installation instructions.

@chilledsaint0716
Copy link

sudo yabai --uninstall-sa
sudo yabai --install-sa
sudo yabai --load-sa

fixed, thx bro.

@zakroma
Copy link

zakroma commented Nov 13, 2020

Reinstalling and reloading SA doesn't work for me. It does work until the reboot/logout. Then it doesnt work, trying the sudo yabai --load-sa results in "Payload doesn't support this macOS version!"

Reinstalling yabai and skhd does nothing too.

Update:
For some reason tail -f /usr/local/var/log/yabai/yabai.err.log showed that there was an error in my .yabairc:
/Users/zakroma/.yabairc: line 1: !/usr/bin/env: No such file or directory

changing !/usr/bin/env sh --> #!/usr/bin/env zsh
has completely fixed all the problems!

@koekeishiya koekeishiya added the question Request for information or help, not an issue label Nov 13, 2020
@capaldo
Copy link
Author

capaldo commented Nov 13, 2020

Reinstalling and reloading SA doesn't work for me. It does work until the reboot/logout. Then it doesnt work, trying the sudo yabai --load-sa results in "Payload doesn't support this macOS version!"

Reinstalling yabai and skhd does nothing too.

Update:
For some reason tail -f /usr/local/var/log/yabai/yabai.err.log showed that there was an error in my .yabairc:
/Users/zakroma/.yabairc: line 1: !/usr/bin/env: No such file or directory

changing !/usr/bin/env sh --> !/usr/bin/env zsh
has completely fixed all the problems!

This worked. Thank you @koekeishiya and @zakroma.

@capaldo capaldo closed this as completed Nov 13, 2020
@24unix
Copy link

24unix commented Nov 13, 2020

@capaldo That seems strange.

This ist a fresh Big Sur upgrade:
`╰─➤ file /bin/sh

/bin/sh: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]

/bin/sh (for architecture x86_64): Mach-O 64-bit executable x86_64
/bin/sh (for architecture arm64e): Mach-O 64-bit executable arm64e

╰─➤ /usr/bin/env sh

sh-3.2$
`
However, your shebang (#!) is missing the hash sign.

@capaldo
Copy link
Author

capaldo commented Nov 13, 2020

@capaldo That seems strange.

This ist a fresh Big Sur upgrade:

`╰─➤ file /bin/sh

/bin/sh: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]

/bin/sh (for architecture x86_64): Mach-O 64-bit executable x86_64

/bin/sh (for architecture arm64e): Mach-O 64-bit executable arm64e

╰─➤ /usr/bin/env sh

sh-3.2$

`

However, your shebang (#!) is missing the hash sign.

I added it with a hash sign.

@24unix
Copy link

24unix commented Nov 13, 2020

What gives "file /bin/sh" and "/usr/bin/env sh"?

@zakroma
Copy link

zakroma commented Nov 13, 2020

What gives "file /bin/sh" and "/usr/bin/env sh"?

Not sure I got what you're asking, but I've changed mine to #!/bin/zsh as using the env tool resulted in errors.

@24unix
Copy link

24unix commented Nov 13, 2020

Try to execute whats inside the quotes, as mine is working with #!/usr/bin/env sh

@zakroma
Copy link

zakroma commented Nov 13, 2020

Try to execute whats inside the quotes, as mine is working with #!/usr/bin/env sh

Results in the same output that you mentioned above.

Adding a proper shebang actually does fix the problem.

@24unix
Copy link

24unix commented Nov 13, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for information or help, not an issue
Projects
None yet
Development

No branches or pull requests

7 participants