File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,16 @@ public void OpenTerminal(string workdir)
6565 {
6666 var home = Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) ;
6767 var cwd = string . IsNullOrEmpty ( workdir ) ? home : workdir ;
68+ var terminal = OS . ShellOrTerminal ;
6869
6970 var startInfo = new ProcessStartInfo ( ) ;
7071 startInfo . WorkingDirectory = cwd ;
71- startInfo . FileName = OS . ShellOrTerminal ;
72+ startInfo . FileName = terminal ;
7273
73- if ( OS . ShellOrTerminal . EndsWith ( "wezterm" , StringComparison . OrdinalIgnoreCase ) )
74+ if ( terminal . EndsWith ( "wezterm" , StringComparison . OrdinalIgnoreCase ) )
7475 startInfo . Arguments = $ "start --cwd \" { cwd } \" ";
76+ else if ( terminal . EndsWith ( "ptyxis" , StringComparison . OrdinalIgnoreCase ) )
77+ startInfo . Arguments = $ "--working-directory=\" { cwd } \" ";
7578
7679 try
7780 {
You can’t perform that action at this time.
0 commit comments