diff --git a/app/main.js b/app/main.js
index 3ee5874918b475fc29a4ddf060cfbd1b75d59f68..edda4e9867366f328bfc384b0af2a3dca325e949 100644
--- a/app/main.js
+++ b/app/main.js
@@ -5,6 +5,9 @@ const {app, BrowserWindow, ipcMain} = require('electron');
 const ElectronStore = require('electron-store');
 const request = require('request');
 
+// Set configs dir
+app.setPath("userData", app.getPath("appData") + "/OCS-Store")
+
 const appPackage = require('../package.json');
 const appConfig = require('./configs/application.json');
 const ocsManagerConfig = require('./configs/ocs-manager.json');
@@ -189,9 +192,6 @@ app.on('web-contents-created', (event, webContents) => {
     }
 });
 
-// Set configs dir
-app.setPath("userData", app.getPath("appData") + "/OCS-Store")
-
 ipcMain.on('app', (event, key) => {
     const data = {
         package: appPackage,