mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Revert "Platform (Linux): use $HOSTNAME if available"
$HOSTNAME doesn't seem to be a standard variable
This reverts commit 02eb604ceb.
This commit is contained in:
@@ -150,10 +150,7 @@ static void getUserName(FFPlatform* platform, const struct passwd* pwd)
|
||||
|
||||
static void getHostName(FFPlatform* platform, const struct utsname* uts)
|
||||
{
|
||||
const char* hostname = getenv("HOSTNAME");
|
||||
if(!ffStrSet(hostname) && uts)
|
||||
hostname = uts->nodename;
|
||||
ffStrbufAppendS(&platform->hostName, hostname);
|
||||
ffStrbufAppendS(&platform->hostName, uts->nodename);
|
||||
}
|
||||
|
||||
static void getUserShell(FFPlatform* platform, const struct passwd* pwd)
|
||||
|
||||
Reference in New Issue
Block a user