aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process_unix.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-08 08:27:39 +0800
committerGitHub <noreply@github.com>2023-07-08 08:27:39 +0800
commit559c4cfd52e385c1b9bd5fa66a0eeb7e8d9e018a (patch)
treea03244eafab3110b07c1895fc8059bf7c85513eb /src/nvim/os/pty_process_unix.c
parentc379d72c490544b3a56eb0e52ce3c8ef740051d8 (diff)
downloadrneovim-559c4cfd52e385c1b9bd5fa66a0eeb7e8d9e018a.tar.gz
rneovim-559c4cfd52e385c1b9bd5fa66a0eeb7e8d9e018a.tar.bz2
rneovim-559c4cfd52e385c1b9bd5fa66a0eeb7e8d9e018a.zip
fix(startup): run embedded Nvim with real path (#24282)
fix(startup): run embedded process with real path
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
-rw-r--r--src/nvim/os/pty_process_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/pty_process_unix.c b/src/nvim/os/pty_process_unix.c
index b5423c59d7..15a4ef6230 100644
--- a/src/nvim/os/pty_process_unix.c
+++ b/src/nvim/os/pty_process_unix.c
@@ -285,7 +285,7 @@ static void init_child(PtyProcess *ptyproc)
return;
}
- char *prog = ptyproc->process.argv[0];
+ const char *prog = process_get_exepath(proc);
assert(proc->env);
environ = tv_dict_to_env(proc->env);