diff --git a/addons/godot_xterm/native/src/pseudoterminal.cpp b/addons/godot_xterm/native/src/pseudoterminal.cpp index bf3fdda..a13594f 100644 --- a/addons/godot_xterm/native/src/pseudoterminal.cpp +++ b/addons/godot_xterm/native/src/pseudoterminal.cpp @@ -1,7 +1,8 @@ #include "pseudoterminal.h" -#include +#include #include #include +#include // Platform specific includes. #if defined(PLATFORM_LINUX) @@ -77,7 +78,8 @@ void Pseudoterminal::process_pty() putenv(colortermenv); char *shell = getenv("SHELL"); - execvp(shell, NULL); + char *argv[] = { basename(shell), NULL }; + execvp(shell, argv); } else { @@ -171,4 +173,4 @@ void Pseudoterminal::resize(Vector2 new_size) { std::lock_guard guard(size_mutex); size = new_size; -} \ No newline at end of file +}