Added suport for Elementary OS 0.3.2

This commit is contained in:
nathan 2016-12-29 23:02:47 +01:00
parent ee54ab39bc
commit 944bf1bbf5

View File

@ -240,7 +240,10 @@ class OSUtil {
try {
String output = getInfo();
// ID="elementary" (notice the extra quotes)
return output.contains("ID=\"elementary\"\n") || output.contains("ID=elementary\n");
return output.contains("ID=\"elementary\"\n") || output.contains("ID=elementary\n") ||
// this is specific to eOS < 0.3.2
output.contains("ID=\"elementary OS\"\n");
} catch (Throwable ignored) {
}