1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:47:35 +00:00

Terminal: Write an empty string instead of (null) on Command key

This prevents a Terminal to create a configuration file with
 Command=(null)

That would make it try to execute the command "(null)" on the next run.
This commit is contained in:
Andres Vieira 2020-05-02 15:27:03 +02:00 committed by Andreas Kling
parent 0e403a43a4
commit ad309d4eca

View file

@ -221,7 +221,7 @@ int main(int argc, char** argv)
if (command_to_execute)
run_command(ptm_fd, command_to_execute);
else
run_command(ptm_fd, config->read_entry("Startup", "Command"));
run_command(ptm_fd, config->read_entry("Startup", "Command", ""));
auto window = GUI::Window::construct();
window->set_title("Terminal");