mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 12:29:30 +02:00
IDE: run params default for windows
git-svn-id: trunk@62674 -
This commit is contained in:
parent
545444126b
commit
7b68c36225
@ -227,17 +227,19 @@ var
|
||||
Term: String;
|
||||
begin
|
||||
Result := '';
|
||||
List := TStringList.Create;
|
||||
{$IFDEF MSWINDOWS}
|
||||
List.Delimiter := ';';
|
||||
{$ELSE}
|
||||
List.Delimiter := ':';
|
||||
{$ENDIF}
|
||||
Term := ATerm;
|
||||
if Term = '' then
|
||||
Term := GetEnvironmentVariableUTF8('TERM');
|
||||
List := TStringList.Create;
|
||||
{$IFDEF MSWINDOWS}
|
||||
List.Delimiter := ';';
|
||||
if Term = '' then
|
||||
Term := 'cmd.exe';
|
||||
{$ELSE}
|
||||
List.Delimiter := ':';
|
||||
if Term = '' then
|
||||
Term := 'xterm';
|
||||
{$ENDIF}
|
||||
List.DelimitedText := GetEnvironmentVariableUTF8('PATH');
|
||||
for i := 0 to List.Count - 1 do
|
||||
begin
|
||||
@ -248,6 +250,8 @@ begin
|
||||
if Term = 'gnome-terminal' then
|
||||
Result := S + ' -t ' + DefaultLauncherTitle + ' -e ' +
|
||||
'''' + DefaultLauncherApplication + ''''
|
||||
else if SameText(Term,'cmd.exe') then
|
||||
Result := S + ' /C ${TargetCmdLine}'
|
||||
else
|
||||
Result := S + ' -T ' + DefaultLauncherTitle + ' -e ' +
|
||||
DefaultLauncherApplication;
|
||||
|
Loading…
Reference in New Issue
Block a user