mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(hostservice): use non uppercase username, respect upper/lowercase for Full Name
This commit is contained in:
@@ -36,9 +36,9 @@ Singleton {
|
||||
return realName;
|
||||
}
|
||||
|
||||
// Fallback: capitalized $USER
|
||||
// Fallback: $USER as-is (login names are case-sensitive on some systems)
|
||||
if (username && username.length > 0) {
|
||||
return username.charAt(0).toUpperCase() + username.slice(1);
|
||||
return username;
|
||||
}
|
||||
|
||||
// Last resort: placeholder
|
||||
|
||||
Reference in New Issue
Block a user