isSnapStore util
This commit is contained in:
parent
d5754d6a58
commit
7a7387848f
|
@ -18,6 +18,10 @@ export function isWindowsStore() {
|
||||||
return process.platform === 'win32' && process.windowsStore && process.windowsStore === true;
|
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() {
|
export function isWindowsPortable() {
|
||||||
return process.platform === 'win32' && process.env.PORTABLE_EXECUTABLE_DIR != null;
|
return process.platform === 'win32' && process.env.PORTABLE_EXECUTABLE_DIR != null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue