ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

OS_Info.full_name on MacOS #53

Open bart9h opened 3 years ago

bart9h commented 3 years ago

OS_Info.full_name on MacOS gives me information about the kernel (basically uname -a).

On Linux it gives information (name and version) about the distribution, and that looks more coherent.

Shouldn't the MacOS version do something similar, like the output of the sw_vers command?

nabijaczleweli commented 3 years ago

Good point; according to this old sw_vers and snooping on my VM, this should be extractable from the /System/Library/CoreServices/SystemVersion.plist (and/or /ServerVersion.plist beforehand, if it exists maybe? who knows) list. Sounds like an easy port for someone who's used CoreFoundation dictionaries before.