diff options
-rw-r--r-- | Applications/Terminal/main.cpp | 8 | ||||
-rw-r--r-- | Base/home/anon/Terminal.ini | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index cfdb9d68f5..eb3b290a86 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -216,14 +216,18 @@ int main(int argc, char** argv) return 1; } - run_command(ptm_fd, command_to_execute); + RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("Terminal"); + + if (command_to_execute) + run_command(ptm_fd, command_to_execute); + else + run_command(ptm_fd, config->read_entry("Startup", "Command")); auto window = GUI::Window::construct(); window->set_title("Terminal"); window->set_background_color(Color::Black); window->set_double_buffering_enabled(false); - RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("Terminal"); auto& terminal = window->set_main_widget<TerminalWidget>(ptm_fd, true, config); terminal.on_command_exit = [&] { app.quit(0); diff --git a/Base/home/anon/Terminal.ini b/Base/home/anon/Terminal.ini index 2ccb03acf0..81c279e74c 100644 --- a/Base/home/anon/Terminal.ini +++ b/Base/home/anon/Terminal.ini @@ -1,3 +1,5 @@ +[Startup] +Command= [Window] Opacity=255 AudibleBeep=0 |