Skip to content

Commit b7a41cc

Browse files
committed
Add Linux Mint 18 case to switch statement
/etc/os-release file on LM18: NAME="Linux Mint" VERSION="18 (Sarah)" ID=linuxmint ID_LIKE=ubuntu PRETTY_NAME="Linux Mint 18" VERSION_ID="18" HOME_URL="http://www.linuxmint.com/" SUPPORT_URL="http://forums.linuxmint.com/" BUG_REPORT_URL="http://bugs.launchpad.net/linuxmint/" UBUNTU_CODENAME=xenial
1 parent bdd4dca commit b7a41cc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/platform.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,17 @@ export function getCurrentPlatform() {
9393
return Platform.Ubuntu16;
9494
}
9595

96+
break;
97+
case 'linuxmint':
98+
const lmVersionId = getValue("VERSION_ID");
99+
if (lmVersionId.startsWith("18")) {
100+
// Linux Mint 18 is binary compatible with Ubuntu 16.04
101+
return Platform.Ubuntu16;
102+
}
103+
96104
break;
97105
}
98106
}
99107

100108
return Platform.Unknown;
101-
}
109+
}

0 commit comments

Comments
 (0)