From bc73273cb3ca39a7339abbf531434780c6484b1e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 14 Jan 2023 15:58:26 +0530 Subject: [PATCH] ... --- kitty/child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child.c b/kitty/child.c index 27e5dc4a5..15e287e7d 100644 --- a/kitty/child.c +++ b/kitty/child.c @@ -154,7 +154,7 @@ spawn(PyObject *self UNUSED, PyObject *args) { // Report the failure and exec a shell instead, so that we are not left // with a forked but not exec'ed process write_to_stderr("Failed to launch child: "); - write_to_stderr(argv[0]); + write_to_stderr(exe); write_to_stderr("\nWith error: "); write_to_stderr(strerror(errno)); write_to_stderr("\nPress Enter to exit.\n");