aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js
index e6bd83e06..b6a052de7 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,6 +1,8 @@
1import electron from 'electron'; 1import electron from 'electron';
2import isDevMode from 'electron-is-dev';
2import ms from 'ms'; 3import ms from 'ms';
3import path from 'path'; 4import path from 'path';
5import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme';
4import { asarPath } from './helpers/asar-helpers'; 6import { asarPath } from './helpers/asar-helpers';
5 7
6const app = process.type === 'renderer' ? electron.remote.app : electron.app; 8const app = process.type === 'renderer' ? electron.remote.app : electron.app;
@@ -127,7 +129,7 @@ export const DEFAULT_APP_SETTINGS = {
127 showServiceNavigationBar: false, 129 showServiceNavigationBar: false,
128 universalDarkMode: true, 130 universalDarkMode: true,
129 adaptableDarkMode: true, 131 adaptableDarkMode: true,
130 accentColor: '#7266F0', 132 accentColor: DEFAULT_ACCENT_COLOR,
131 serviceRibbonWidth: 68, 133 serviceRibbonWidth: 68,
132 iconSize: iconSizeBias, 134 iconSize: iconSizeBias,
133 sentry: false, 135 sentry: false,
@@ -184,6 +186,10 @@ if (process.env.FERDI_APPDATA_DIR != null) {
184 app.setPath('userData', path.join(app.getPath('appData'), app.name)); 186 app.setPath('userData', path.join(app.getPath('appData'), app.name));
185} 187}
186 188
189if (isDevMode) {
190 app.setPath('userData', path.join(app.getPath('appData'), `${app.name}Dev`));
191}
192
187export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); 193export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config');
188 194
189// Replacing app.asar is not beautiful but unfortunately necessary 195// Replacing app.asar is not beautiful but unfortunately necessary