+local version = "the best operating system ever!";
+
+if not require "core.configmanager".get("*", "core", "hide_os_type") then
+ if os.getenv("WINDIR") then
+ version = "Windows";
+ else
+ local uname = io.popen("uname");
+ if uname then
+ version = uname:read("*a");
+ else
+ version = "an OS";
+ end
+ end
+end
+
+version = version:match("^%s*(.-)%s*$") or version;
+