mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 06:39:08 +02:00
ide: replace OnGetApplicationName with hardcoded 'lazarus', so that Application.Title isn't used in GetAppConfigDir (issue #18396)
git-svn-id: trunk@28874 -
This commit is contained in:
parent
c3cc4ea704
commit
70d3297249
@ -48,8 +48,10 @@ uses
|
||||
{$IF defined(Unix) and not defined(VER2_2_0) and not defined(VER2_2_2)}
|
||||
clocale,
|
||||
{$ENDIF}
|
||||
SysUtils,
|
||||
Interfaces,
|
||||
Forms, LCLProc,
|
||||
LazConf,
|
||||
Splash,
|
||||
Main,
|
||||
AboutFrm,
|
||||
@ -88,6 +90,7 @@ begin
|
||||
|
||||
LazarusRevisionStr:=RevisionStr;
|
||||
Application.Title:='Lazarus';
|
||||
OnGetApplicationName:=@GetLazarusApplicationName;
|
||||
Application.Initialize;
|
||||
TMainIDE.ParseCmdLineOptions;
|
||||
if Application.Terminated then exit;
|
||||
|
@ -124,6 +124,10 @@ function GetDefaultLCLLibPaths(const Prefix, Postfix, Separator: string): string
|
||||
// returrns the default browser
|
||||
procedure GetDefaultBrowser(var Browser, Params: string);
|
||||
|
||||
// Replace OnGetApplicationName, so that Application.Title
|
||||
// doesn't interfere with GetAppConfigDir and related.
|
||||
function GetLazarusApplicationName: string;
|
||||
|
||||
type
|
||||
TLazConfMacroFunc = procedure(var s: string);
|
||||
var
|
||||
@ -167,6 +171,11 @@ begin
|
||||
List.Add(Filename);
|
||||
end;
|
||||
|
||||
function GetLazarusApplicationName: string;
|
||||
begin
|
||||
Result := 'lazarus';
|
||||
end;
|
||||
|
||||
procedure LazConfSubstituteMacros(var s: string);
|
||||
begin
|
||||
if Assigned(LazConfMacroFunc) then
|
||||
|
Loading…
Reference in New Issue
Block a user