mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 03:20:50 +02:00
IDE: fixed restarting lazarus
git-svn-id: trunk@15778 -
This commit is contained in:
parent
23d97dd378
commit
91146521fe
@ -9441,14 +9441,14 @@ procedure TMainIDE.DoRestart;
|
||||
' --lazarus-pid='+IntToStr(GetProcessID) + ' ' +
|
||||
GetCommandLineParameters(Params, False);
|
||||
|
||||
//DebugLn('CommandLine 1 : %s', [StartLazProcess.CommandLine]);
|
||||
DebugLn('CommandLine 1 : %s', [StartLazProcess.CommandLine]);
|
||||
|
||||
if (pos(PrimaryConfPathOptLong, StartLazProcess.CommandLine) = 0) and
|
||||
(pos(PrimaryConfPathOptShort, StartLazProcess.CommandLine) = 0) then
|
||||
StartLazProcess.CommandLine := StartLazProcess.CommandLine +
|
||||
' "' + PrimaryConfPathOptLong + '='+GetPrimaryConfigPath+'"';
|
||||
' "' + PrimaryConfPathOptLong + GetPrimaryConfigPath+'"';
|
||||
|
||||
//DebugLn('CommandLine 2 : %s', [StartLazProcess.CommandLine]);
|
||||
DebugLn('CommandLine 2 : %s', [StartLazProcess.CommandLine]);
|
||||
|
||||
StartLazProcess.Execute;
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user