aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.js')
-rw-r--r--src/config.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js
index d327185f0..3696354c6 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,5 +1,6 @@
1import electron from 'electron'; 1import electron from 'electron';
2import path from 'path'; 2import path from 'path';
3import { asarPath } from './helpers/asar-helpers';
3 4
4const app = process.type === 'renderer' ? electron.remote.app : electron.app; 5const app = process.type === 'renderer' ? electron.remote.app : electron.app;
5const systemPreferences = process.type === 'renderer' ? electron.remote.systemPreferences : electron.systemPreferences; 6const systemPreferences = process.type === 'renderer' ? electron.remote.systemPreferences : electron.systemPreferences;
@@ -59,4 +60,4 @@ export const FILE_SYSTEM_SETTINGS_TYPES = [
59export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); 60export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config');
60 61
61// Replacing app.asar is not beautiful but unforunately necessary 62// Replacing app.asar is not beautiful but unforunately necessary
62export const DICTIONARY_PATH = path.join(__dirname, 'dictionaries').replace('app.asar', 'app.asar.unpacked'); 63export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries'));