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:
parent
2634cab7a8
commit
c7265ee6bd
3 changed files with 33 additions and 11 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue