diff --git a/lcl/include/sysenvapis_unix.inc b/lcl/include/sysenvapis_unix.inc index 23df05f7e0..e9c74ef22c 100644 --- a/lcl/include/sysenvapis_unix.inc +++ b/lcl/include/sysenvapis_unix.inc @@ -44,7 +44,7 @@ begin Exit(False); if (APath<>'') and (APath[1]<>'"') then - APath:=QuotedStr(APath); + APath:=APath.QuotedString('"'); RunCmdFromPath(lApp,APath); end; @@ -104,7 +104,7 @@ begin end; if (FileParam <> '') and (FileParam[1] <> '"') then - FileParam := QuotedStr(FileParam); + FileParam := FileParam.QuotedString('"'); RunCmdFromPath(lApp, SelParam + FileParam, []); Result := True; end;