mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
OS (Linux): adds comments
This commit is contained in:
@@ -94,11 +94,7 @@ FF_A_UNUSED static bool getUbuntuFlavour(FFOSResult* result) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const char* xdgConfigDirs = getenv("XDG_CONFIG_DIRS");
|
||||
if (!ffStrSet(xdgConfigDirs)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// xdgConfigDirs contains plasma only
|
||||
if (ffPathExists("/var/lib/dpkg/info/ubuntustudio-desktop.list", FF_PATHTYPE_FILE))
|
||||
{
|
||||
ffStrbufSetStatic(&result->name, "Ubuntu Studio");
|
||||
@@ -107,6 +103,11 @@ FF_A_UNUSED static bool getUbuntuFlavour(FFOSResult* result) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const char* xdgConfigDirs = getenv("XDG_CONFIG_DIRS");
|
||||
if (!ffStrSet(xdgConfigDirs)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ffStrContains(xdgConfigDirs, "kde") || ffStrContains(xdgConfigDirs, "plasma") || ffStrContains(xdgConfigDirs, "kubuntu")) {
|
||||
ffStrbufSetStatic(&result->name, "Kubuntu");
|
||||
ffStrbufSetStatic(&result->id, "kubuntu");
|
||||
|
||||
Reference in New Issue
Block a user