OS (Linux): adds comments
This commit is contained in:
1 parent
0557f16c16
commit
2e6b9cd503
1 file changed
+6
-5
@@ -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