By using
QueryClientConVar and checking if these unique convars exist on a client, you can determine which operating system the client is running. Useful for building statistics and other creative ideas.
- Windows - "windows_speaker_config"
- Linux - "sdl_double_click_size"
- Mac - "gl_can_mix_shader_gammas"
See the attached gamedata for the latest cvars known to work. Edit:
Dr.Mckay's updated gamedata can be found here.
I've attached an example that I was playing around with. Thanks to psychonic for providing a Mac cvarlist to work with.