Skip to content

Commit 2e6b9cd

Browse files
committed
OS (Linux): adds comments
1 parent 0557f16 commit 2e6b9cd

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/detection/os/os_linux.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ FF_A_UNUSED static bool getUbuntuFlavour(FFOSResult* result) {
9494
return true;
9595
}
9696

97-
const char* xdgConfigDirs = getenv("XDG_CONFIG_DIRS");
98-
if (!ffStrSet(xdgConfigDirs)) {
99-
return false;
100-
}
101-
97+
// xdgConfigDirs contains plasma only
10298
if (ffPathExists("/var/lib/dpkg/info/ubuntustudio-desktop.list", FF_PATHTYPE_FILE))
10399
{
104100
ffStrbufSetStatic(&result->name, "Ubuntu Studio");
@@ -107,6 +103,11 @@ FF_A_UNUSED static bool getUbuntuFlavour(FFOSResult* result) {
107103
return false;
108104
}
109105

106+
const char* xdgConfigDirs = getenv("XDG_CONFIG_DIRS");
107+
if (!ffStrSet(xdgConfigDirs)) {
108+
return false;
109+
}
110+
110111
if (ffStrContains(xdgConfigDirs, "kde") || ffStrContains(xdgConfigDirs, "plasma") || ffStrContains(xdgConfigDirs, "kubuntu")) {
111112
ffStrbufSetStatic(&result->name, "Kubuntu");
112113
ffStrbufSetStatic(&result->id, "kubuntu");

0 commit comments

Comments
 (0)