summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls Piņķis <emils@mullvad.net>2018-04-12 15:12:50 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-04-17 16:00:59 +0100
commit78ef1369e72a2a46f797231345801e6a7b2af898 (patch)
treed61b547dc1de381815dbf3441916560626a7a613
parent95510f932faabe7a9c36c1d015ee59f04a200ea2 (diff)
downloadmullvadvpn-78ef1369e72a2a46f797231345801e6a7b2af898.tar.xz
mullvadvpn-78ef1369e72a2a46f797231345801e6a7b2af898.zip
Change behaviour of GUI to only shut down the daemon on Windows and OSX
-rw-r--r--app/main.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/main.js b/app/main.js
index 6370292d72..7ca5bcf2ac 100644
--- a/app/main.js
+++ b/app/main.js
@@ -95,10 +95,12 @@ const appDelegate = {
ipcMain.on('hide-window', () => window.hide());
window.loadURL('file://' + path.join(__dirname, 'index.html'));
- window.on('close', () => {
- log.debug('The browser window is closing, shutting down the tunnel...');
- window.webContents.send('shutdown');
- });
+ if (process.platform !== 'linux') {
+ window.on('close', () => {
+ log.debug('The browser window is closing, shutting down the tunnel...');
+ window.webContents.send('shutdown');
+ });
+ }
ipcMain.on('collect-logs', (event, id, toRedact) => {
log.info('Collecting logs in', appDelegate._logFileLocation);