isSnapStore util

This commit is contained in:
Kyle Spearrin 2018-02-23 17:18:14 -05:00
parent d5754d6a58
commit 7a7387848f
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ export function isWindowsStore() {
return process.platform === 'win32' && process.windowsStore && process.windowsStore === true;
}
export function isSnapStore() {
return process.platform === 'linux' && process.env.SNAP_USER_DATA != null;
}
export function isWindowsPortable() {
return process.platform === 'win32' && process.env.PORTABLE_EXECUTABLE_DIR != null;
}