You've already forked lazarus-ccr
LazEdit: use better location for config file (the old one was not writeable by default on any modern OS).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7259 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -41,7 +41,7 @@ interface
|
||||
|
||||
uses
|
||||
SysUtils, Classes, EditorPageControl, lazedit_constants, lazedit_translations,
|
||||
Forms, IniFiles, LCLProc;
|
||||
Forms, IniFiles, LCLProc, LazFileUtils;
|
||||
|
||||
type
|
||||
//globale type for all configurable options
|
||||
@ -277,8 +277,21 @@ end;
|
||||
|
||||
function GetDefaultIniDir: String;
|
||||
begin
|
||||
Result := ExcludeTrailingPathDelimiter(ExtractFilePath(Application.ExeName));
|
||||
Result := ExcludeTrailingPathDelimiter(GetAppConfigDirUTF8(False, True));
|
||||
writeln('GetDefaultIniDir -> ',Result);
|
||||
end;
|
||||
|
||||
function GetApplicationName: String;
|
||||
begin
|
||||
{$ifdef windows}
|
||||
Result := 'LazEdit';
|
||||
{$else}
|
||||
Result := 'lazedit';
|
||||
{$endif}
|
||||
end;
|
||||
|
||||
initialization
|
||||
OnGetApplicationName := @GetApplicationName;
|
||||
|
||||
end.
|
||||
|
||||
|
Reference in New Issue
Block a user