Skip to content

Commit

Permalink
Enforce app being in the applications folder (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
George Karagkiaouris authored and sindresorhus committed Mar 18, 2019
1 parent 4c3379d commit 32f9511
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const {app} = require('electron');
const prepareNext = require('electron-next');
const {is} = require('electron-util');
const {is, enforceMacOSAppLocation} = require('electron-util');
const log = require('electron-log');
const {autoUpdater} = require('electron-updater');
const toMilliseconds = require('@sindresorhus/to-milliseconds');
Expand Down Expand Up @@ -63,6 +63,9 @@ const checkForUpdates = () => {

app.dock.hide();

// Ensure the app is in the Applications folder
enforceMacOSAppLocation();

// Ensure all plugins are up to date
initializePlugins();

Expand Down

0 comments on commit 32f9511

Please sign in to comment.