blob: 1a8cd4258e7a0287073111e1f92170103f962888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { startApp } from '../utils';
export const startInstalledApp = async (): ReturnType<typeof startApp> => {
return startApp({ executablePath: getAppInstallPath() });
}
function getAppInstallPath(): string {
switch (process.platform) {
case 'win32':
return 'C:\\Program Files\\Mullvad VPN\\Mullvad VPN.exe';
case 'linux':
return '/opt/Mullvad VPN/mullvad-gui';
case 'darwin':
return '/Applications/Mullvad VPN.app/Contents/MacOS/Mullvad VPN';
default:
throw new Error('Platform not supported');
}
}
|