Пример #1
0
        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));
        }
Пример #2
0
        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();