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

Config file executable not resolved correctly if the path contains whitespace #2562

Open
gouvinb opened this issue Feb 26, 2025 · 0 comments

Comments

@gouvinb
Copy link

gouvinb commented Feb 26, 2025

Context

  • In my environment, XDG_CONFIG_HOME is equal to ~/Library/Application Support.
  • The location of the yabairc file is ~/Library/Application Support/yabai/yabairc.

Setting the scene

When yabairc is executable, then when starting the service with the command yabai --start-service, my configuration is not loaded and the error logs show me:

sh: /Users/gouvinb/Library/Application: Permission denied
sh: /Users/gouvinb/Library/Application: Permission denied
sh: /Users/gouvinb/Library/Application: Permission denied

But if yabairc is not executable then my configuration is correctly loaded.

I think the error is here.

But I can't explain why env -c operates like this.

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

1 participant