mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 04:07:57 +02:00
IDE: Call GetHostname for Unix in function GetCurrentChangeLog. All distros do not have 'HOSTNAME' env.var.
git-svn-id: trunk@63554 -
This commit is contained in:
parent
6dc2b54e1a
commit
c49c71322c
@ -1308,13 +1308,18 @@ end;
|
||||
|
||||
function GetCurrentUserName: string;
|
||||
begin
|
||||
Result:=GetEnvironmentVariableUTF8({$IFDEF Windows}'USERNAME'{$ELSE}'USER'{$ENDIF});
|
||||
Result:=GetEnvironmentVariableUTF8({$IFDEF MSWindows}'USERNAME'{$ELSE}'USER'{$ENDIF});
|
||||
end;
|
||||
|
||||
function GetCurrentChangeLog: string;
|
||||
begin
|
||||
Result:='<'+GetCurrentUserName+'@'+
|
||||
GetEnvironmentVariableUTF8({$IFDEF Windows}'COMPUTERNAME'{$ELSE}'HOSTNAME'{$ENDIF})+'>';
|
||||
{$IF defined(MSWindows) or defined(HASAMIGA)}
|
||||
GetEnvironmentVariableUTF8('COMPUTERNAME')
|
||||
{$ELSE}
|
||||
GetHostname
|
||||
{$ENDIF}
|
||||
+ '>';
|
||||
end;
|
||||
|
||||
function GetProgramSearchPath: string;
|
||||
|
Loading…
Reference in New Issue
Block a user