Skip to content

Commit

Permalink
Terminal: Don't set an initial command_to_execute
Browse files Browse the repository at this point in the history
Otherwise we end up executing "/bin/Shell -c /bin/Shell" on a normal
launch.  With a null command_to_execute, we'll just execute
/bin/Shell
  • Loading branch information
jcs authored and awesomekling committed Feb 25, 2020
1 parent 559a99c commit a17e702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Applications/Terminal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int main(int argc, char** argv)
return 1;
}

const char* command_to_execute = "/bin/Shell";
const char* command_to_execute = nullptr;

Core::ArgsParser args_parser;
args_parser.add_option(command_to_execute, "Execute this command inside the terminal", nullptr, 'e', "command");
Expand Down

0 comments on commit a17e702

Please sign in to comment.