From b7a41cc221a6d6ef9b8719fb53b81239656aeeed Mon Sep 17 00:00:00 2001 From: Kamil Szyc Date: Tue, 30 Aug 2016 20:05:34 +0200 Subject: [PATCH] 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 --- src/platform.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/platform.ts b/src/platform.ts index 5aea52e..773df9b 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -93,9 +93,17 @@ export function getCurrentPlatform() { return Platform.Ubuntu16; } + break; + case 'linuxmint': + const lmVersionId = getValue("VERSION_ID"); + if (lmVersionId.startsWith("18")) { + // Linux Mint 18 is binary compatible with Ubuntu 16.04 + return Platform.Ubuntu16; + } + break; } } return Platform.Unknown; -} \ No newline at end of file +}