Fix: Neovide.app not working in Finder (#1242)

* fix: update command execution for macos

* feat: support brew for macos users

* fix: add refetence for M1 brew
macos-click-through
Jae-Heon Ji 3 years ago committed by GitHub
parent bb1255d303
commit 65c234131f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -253,6 +253,7 @@ snap install neovide
## Troubleshooting ## Troubleshooting
- Neovide requires that a font be set in `init.vim` otherwise errors might be encountered. This can be fixed by adding `set guifont=Your\ Font\ Name:h15` in init.vim file. Reference issue [#527](https://github.com/neovide/neovide/issues/527). - Neovide requires that a font be set in `init.vim` otherwise errors might be encountered. This can be fixed by adding `set guifont=Your\ Font\ Name:h15` in init.vim file. Reference issue [#527](https://github.com/neovide/neovide/issues/527).
- If you installed `neovim` via Apple Silicon (M1)-based `brew`, you have to add the `brew prefix` to `$PATH` to run `Neovide.app` in GUI. Please see the [homebrew documentation](https://docs.brew.sh/FAQ#my-mac-apps-dont-find-homebrew-utilities). Reference issue [#1242](https://github.com/neovide/neovide/pull/1242)
### Linux-specific ### Linux-specific
- If you recieve errors complaining about DRI3 settings, please reference issue [#44](https://github.com/neovide/neovide/issues/44#issuecomment-578618052). - If you recieve errors complaining about DRI3 settings, please reference issue [#44](https://github.com/neovide/neovide/issues/44#issuecomment-578618052).

@ -56,8 +56,11 @@ fn create_platform_shell_command(command: &str, args: &[&str]) -> Option<StdComm
Some(result) Some(result)
} else if cfg!(target_os = "macos") { } else if cfg!(target_os = "macos") {
let mut result = StdCommand::new(command); let shell = env::var("SHELL").unwrap_or_else(|_| "/bin/sh".to_string());
result.args(args); let mut result = StdCommand::new(&shell);
result.args(&["-lc"]);
result.arg(format!("{} {}", command, args.join(" ")));
Some(result) Some(result)
} else { } else {

Loading…
Cancel
Save