Skip to content

Commit d2f0ed1

Browse files
authored
[Fix] Return "macOS" as the OS name on macOS (#4876)
Return "macOS" as the OS name on macOS Originally I thought "OS: X.Y.Z (darwin)" would be fine to output temporarily, but since the codename detection FIXME doesn't seem easy to solve, let's at least do "OS: macOS X.Y.Z" for now
1 parent 32dc753 commit d2f0ed1

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/systeminfo/osInfo

1 file changed

+1
-1
lines changed

src/backend/utils/systeminfo/osInfo/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function getOsInfo(): Promise<{ name: string; version?: string }> {
1212
// FIXME: I'd like to return the OS's codename ("Monterey", "Ventura", and
1313
// so on) here, but the only way for applications to obtain those
1414
// seems to be scraping a license file (https://unix.stackexchange.com/questions/234104/get-osx-codename-from-command-line)
15-
return { name: '' }
15+
return { name: 'macOS' }
1616
default:
1717
return { name: '' }
1818
}

0 commit comments

Comments
 (0)