mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 01:08:12 +02:00
IDE/Instances: Use a "USERNAME" environment variable in Windows instead of "USER"
This commit is contained in:
parent
c4f158abb8
commit
b2229d4e82
@ -189,7 +189,7 @@ begin
|
||||
if FServerPrefix = '' then
|
||||
begin
|
||||
// Calculate the user specific instance prefix only once.
|
||||
FServerPrefix := GetEnvironmentVariable('USER'); // current user
|
||||
FServerPrefix := GetEnvironmentVariable({$IFDEF MSWINDOWS}'USERNAME'{$ELSE}'USER'{$ENDIF});
|
||||
// encode to cover illegal chars ('-' etc)
|
||||
FServerPrefix := IntToStr( crc32(0, pbyte(FServerPrefix), Length(FServerPrefix)) )
|
||||
+ '_LazarusMain';
|
||||
|
Loading…
Reference in New Issue
Block a user