mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 12:59:12 +02:00
IDE, startlazarus: fixed passing primary config directory with spaces in name (bug #11245)
git-svn-id: trunk@15046 -
This commit is contained in:
parent
6cd01bc70a
commit
b5783a87b1
@ -161,6 +161,15 @@ begin
|
|||||||
else
|
else
|
||||||
FCmdLineParams.Add(Param);
|
FCmdLineParams.Add(Param);
|
||||||
end;
|
end;
|
||||||
|
// make sure that all the values of the command line parameters are still
|
||||||
|
// double quoted, if they contain spaces
|
||||||
|
for i := 0 to FCmdLineParams.Count -1 do
|
||||||
|
begin
|
||||||
|
if pos(' ',FCmdLineParams.ValueFromIndex[i])>0 then
|
||||||
|
begin
|
||||||
|
FCmdLineParams.ValueFromIndex[i] := '"' + FCmdLineParams.ValueFromIndex[i] + '"';
|
||||||
|
end;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TLazarusManager.GetCommandLineParameters: string;
|
function TLazarusManager.GetCommandLineParameters: string;
|
||||||
|
@ -9165,7 +9165,7 @@ procedure TMainIDE.DoRestart;
|
|||||||
end;
|
end;
|
||||||
StartLazProcess.CommandLine := ExeName
|
StartLazProcess.CommandLine := ExeName
|
||||||
+' --lazarus-pid='+IntToStr(GetProcessID)
|
+' --lazarus-pid='+IntToStr(GetProcessID)
|
||||||
+' --primary-config-path='+GetPrimaryConfigPath;
|
+' --primary-config-path="'+GetPrimaryConfigPath+'"';
|
||||||
StartLazProcess.Execute;
|
StartLazProcess.Execute;
|
||||||
finally
|
finally
|
||||||
StartLazProcess.Free;
|
StartLazProcess.Free;
|
||||||
|
Loading…
Reference in New Issue
Block a user