mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-26 01:17:52 -04:00
Small fixes [release]
This commit is contained in:
@@ -60,8 +60,8 @@ public interface OsType {
|
||||
@Override
|
||||
public String determineOperatingSystemName(ShellControl pc) throws Exception {
|
||||
var properties = getProperties(pc);
|
||||
return properties.get("OS Name") + " "
|
||||
+ properties.get("OS Version").split(" ")[0];
|
||||
return properties.getOrDefault("OS Name", "Windows") + " "
|
||||
+ properties.getOrDefault("OS Version", "?").split(" ")[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user