mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
@@ -150,7 +150,10 @@ static void getUserName(FFPlatform* platform, const struct passwd* pwd)
|
||||
|
||||
static void getHostName(FFPlatform* platform, const struct utsname* uts)
|
||||
{
|
||||
ffStrbufAppendS(&platform->hostName, uts->nodename);
|
||||
const char* hostname = getenv("HOSTNAME");
|
||||
if(!ffStrSet(hostname) && uts)
|
||||
hostname = uts->nodename;
|
||||
ffStrbufAppendS(&platform->hostName, hostname);
|
||||
}
|
||||
|
||||
static void getUserShell(FFPlatform* platform, const struct passwd* pwd)
|
||||
|
||||
Reference in New Issue
Block a user