From ad309d4eca58113160950b6120d5e59dc6e9d967 Mon Sep 17 00:00:00 2001 From: Andres Vieira Date: Sat, 2 May 2020 15:27:03 +0200 Subject: [PATCH] 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. --- Applications/Terminal/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index eb3b290a86..b4e0451bde 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -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");