nikitabobko / AeroSpace

AeroSpace is an i3-like tiling window manager for macOS
https://nikitabobko.github.io/AeroSpace/guide
MIT License
6.38k stars 103 forks source link

exec-and-forget does not work with paths containing spaces #387

Open blue-3 opened 2 months ago

blue-3 commented 2 months ago

When creating an exec-and-forget command in aerospace with a path that contains spaces the script seems to fail using the below example to make a hotkey to switch context to my apps

ctrl-cmd-o = "exec-and-forget open -a /Applications/Obsidian.app"
ctrl-cmd-enter = "exec-and-forget open -a /Applications/kitty.app"
ctrl-cmd-s = "exec-and-forget open -a /Applications/Slack.app"
ctrl-cmd-m = "exec-and-forget open -a /Applications/Microsoft\ Outlook.app"

all of the above work, except for outlook. noting that if i put any other commands underneath outlook they fail to execute also

blue-3 commented 1 month ago

symlinks work nicely to get around this problem in the meantime