mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-12 14:31:00 +01:00
1 parent
ce6b2b85f7
commit
02eb604ceb
1 file changed
+4
-1
@@ -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