mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-10 07:00:08 +01:00
First round of fixes for FFPlatform
This commit is contained in:
@@ -17,7 +17,7 @@ void ffPlatformInit(FFPlatform* platform)
|
||||
ffStrbufInit(&platform->systemVersion);
|
||||
ffStrbufInit(&platform->systemArchitecture);
|
||||
|
||||
ffPlatformInitÎmpl(platform);
|
||||
ffPlatformInitImpl(platform);
|
||||
|
||||
if(platform->domainName.length == 0)
|
||||
ffStrbufAppend(&platform->domainName, &platform->hostName);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "FFPlatform.h"
|
||||
|
||||
void ffPlatformInitÎmpl(FFPlatform* platform);
|
||||
void ffPlatformInitImpl(FFPlatform* platform);
|
||||
|
||||
#define FF_PLATFORM_PATH_UNIQUE(list, element) \
|
||||
if(ffListFirstIndexComp(list, element, (bool(*)(const void*, const void*))ffStrbufEqual) < list->length - 1) \
|
||||
|
||||
@@ -113,7 +113,7 @@ static void getUserShell(FFPlatform* platform, const struct passwd* pwd)
|
||||
ffStrbufAppendS(&platform->userShell, shell);
|
||||
}
|
||||
|
||||
void ffPlatformInitÎmpl(FFPlatform* platform)
|
||||
void ffPlatformInitImpl(FFPlatform* platform)
|
||||
{
|
||||
struct passwd* pwd = getpwuid(getuid());
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ static void getSystemArchitecture(FFPlatform* platform)
|
||||
}
|
||||
}
|
||||
|
||||
void ffPlatformInitÎmpl(FFPlatform* platform)
|
||||
void ffPlatformInitImpl(FFPlatform* platform)
|
||||
{
|
||||
getHomeDir(platform);
|
||||
getCacheDir(platform);
|
||||
|
||||
Reference in New Issue
Block a user