mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 19:49:16 +02:00
LCL: OpenDocument: auto add quotes, bug #16541
git-svn-id: trunk@25586 -
This commit is contained in:
parent
f00e4a5c9b
commit
c1bd18c9ef
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user