protected override TerminalSettingsStateModel GetDefaultSettings() { var desktopEnvironment = _desktopEnvironmentService.GetDesktopEnvironment(); var(command, arguments) = desktopEnvironment switch { DesktopEnvironment.Kde => ("konsole", @"--workdir \""{0}\"""), _ => ("x-terminal-emulator", @"--workdir \""{0}\""") }; return(CreateFrom(command, arguments)); }
protected override TerminalSettings GetDefaultSettings() { var desktopEnvironment = _desktopEnvironmentService.GetDesktopEnvironment(); var(command, arguments) = desktopEnvironment switch { DesktopEnvironment.Kde => ("konsole", @"--workdir \""{0}\"""), _ => ("x-terminal-emulator", @"--workdir \""{0}\""") }; return(new TerminalSettings { Command = command, Arguments = arguments }); }
private DesktopEnvironment GetDesktopEnvironment() => _desktopEnvironmentService.GetDesktopEnvironment();