mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-12 22:40:54 +01:00
InitSystem: better systemd version detection
This commit is contained in:
1 file changed
+1
-1
@@ -20,7 +20,7 @@ const char* ffDetectInitSystem(FFInitSystemResult* result)
|
||||
if (ffStrbufEqualS(&result->name, "systemd"))
|
||||
{
|
||||
if (ffProcessAppendStdOut(&result->version, (char* const[]) {
|
||||
result->exe.chars, // use exe path in case users have another systemd installed
|
||||
ffStrbufEndsWithS(&result->exe, "/systemd") ? result->exe.chars : "systemctl", // use exe path in case users have another systemd installed
|
||||
"--version",
|
||||
NULL,
|
||||
}) == NULL && result->version.length)
|
||||
|
||||
Reference in new issue
Block a user