Skip to content

Commit e68406e

Browse files
committed
DE (macOS): report Liquid Glass on macOS 26+
1 parent ba69e31 commit e68406e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/detection/displayserver/displayserver_apple.c

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "util/apple/cf_helpers.h"
33
#include "util/stringUtils.h"
44
#include "util/edidHelper.h"
5+
#include "detection/os/os.h"
56

67
#include <stdlib.h>
78
#include <string.h>
@@ -194,7 +195,22 @@ void ffConnectDisplayServerImpl(FFDisplayServerResult* ds)
194195
ffStrbufSetStatic(&ds->wmPrettyName, "Quartz Compositor");
195196
}
196197
}
197-
ffStrbufSetStatic(&ds->dePrettyName, "Aqua");
198+
199+
const FFOSResult* os = ffDetectOS();
200+
201+
char* str_end;
202+
const char* version = os->version.chars;
203+
unsigned long osNum = strtoul(version, &str_end, 10);
204+
if (str_end != version)
205+
{
206+
if (osNum >= 26) { // Tahoe
207+
ffStrbufSetStatic(&ds->dePrettyName, "Liquid Glass");
208+
} else if (osNum < 10) {
209+
ffStrbufSetStatic(&ds->dePrettyName, "Platinum");
210+
} else {
211+
ffStrbufSetStatic(&ds->dePrettyName, "Aqua");
212+
}
213+
}
198214

199215
detectDisplays(ds);
200216
}

0 commit comments

Comments
 (0)