Allow configuring the default shell command line arguments. Set -l by default in Haiku (to recover the user profile by default, SpartanJ/ecode#601).

This commit is contained in:
Martín Lucas Golini
2025-07-27 13:15:59 -03:00
parent 84da3626f9
commit 79ec7d1c77
4 changed files with 24 additions and 12 deletions
+3
View File
@@ -212,6 +212,8 @@ void AppConfig::load( const std::string& confPath, std::string& keybindingsPath,
ini.getValueB( "global_search_bar", "buffer_only_mode", false );
term.shell = ini.getValue( "terminal", "shell" );
term.shellArgs = ini.getValue( "terminal", "shell_args",
Sys::getPlatformType() == Sys::PlatformType::Haiku ? "-l" : "" );
term.fontSize = ini.getValue( "terminal", "font_size", "11dp" );
term.colorScheme = ini.getValue( "terminal", "colorscheme", "eterm" );
term.newTerminalOrientation = NewTerminalOrientation::fromString(
@@ -367,6 +369,7 @@ void AppConfig::save( const std::vector<std::string>& recentFiles,
ini.setValueB( "global_search_bar", "buffer_only_mode", globalSearchBarConfig.bufferOnlyMode );
ini.setValue( "terminal", "shell", term.shell );
ini.setValue( "terminal", "shell_args", term.shellArgs );
ini.setValue( "terminal", "font_size", term.fontSize.toString() );
ini.setValue( "terminal", "colorscheme", term.colorScheme );
ini.setValue( "terminal", "new_terminal_orientation",