1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

Assistant: Keep the Terminal window open after the command has run

This commit is contained in:
Gunnar Beutner 2021-07-04 10:59:40 +02:00 committed by Andreas Kling
parent 2634cab7a8
commit c7265ee6bd
3 changed files with 33 additions and 11 deletions

View file

@ -50,7 +50,7 @@ void FileResult::activate() const
void TerminalResult::activate() const
{
pid_t pid;
char const* argv[] = { "Terminal", "-e", title().characters(), nullptr };
char const* argv[] = { "Terminal", "-k", "-e", title().characters(), nullptr };
if ((errno = posix_spawn(&pid, "/bin/Terminal", nullptr, nullptr, const_cast<char**>(argv), environ))) {
perror("posix_spawn");