LCL: OpenDocument: auto add quotes, bug #16541

git-svn-id: trunk@25586 -
This commit is contained in:
mattias 2010-05-23 09:21:58 +00:00
parent f00e4a5c9b
commit c1bd18c9ef

View File

@ -318,6 +318,7 @@ var
lApp: string;
begin
Result := True;
if not FileExistsUTF8(APath) then exit(false);
lApp:=FindFilenameOfCmd('xdg-open'); // Portland OSDL/FreeDesktop standard on Linux
if lApp='' then
@ -327,6 +328,8 @@ begin
if lApp='' then
Exit(False);
if (APath<>'') and (APath[1]<>'"') then
APath:=QuotedStr(APath);
RunCmdFromPath(lApp,APath);
end;
{$ENDIF}