blob: 9e4dd6c79ccba22e6981f22d8f26c6c73ecd7f4a (
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');
}
}
|