diff options
author | 2019-02-12 15:40:50 +0100 | |
---|---|---|
committer | 2019-02-12 15:42:58 +0100 | |
commit | 88086011a634acbfd5179fcfb855de0bfd31930c (patch) | |
tree | c7c651f69ec6be2df3e48838db5c9678a08c1d1a /src/config.js | |
parent | Bump version to 5.0.0 (diff) | |
download | ferdium-app-88086011a634acbfd5179fcfb855de0bfd31930c.tar.gz ferdium-app-88086011a634acbfd5179fcfb855de0bfd31930c.tar.zst ferdium-app-88086011a634acbfd5179fcfb855de0bfd31930c.zip |
feat(Windows): Add option to quit Franz from Taskbar icon
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js index 789ddd1a0..101a4379a 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -1,5 +1,6 @@ | |||
1 | import electron from 'electron'; | 1 | import electron from 'electron'; |
2 | import path from 'path'; | 2 | import path from 'path'; |
3 | import { asarPath } from './helpers/asar-helpers'; | ||
3 | 4 | ||
4 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; | 5 | const app = process.type === 'renderer' ? electron.remote.app : electron.app; |
5 | const systemPreferences = process.type === 'renderer' ? electron.remote.systemPreferences : electron.systemPreferences; | 6 | const systemPreferences = process.type === 'renderer' ? electron.remote.systemPreferences : electron.systemPreferences; |
@@ -57,4 +58,4 @@ export const FILE_SYSTEM_SETTINGS_TYPES = [ | |||
57 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); | 58 | export const SETTINGS_PATH = path.join(app.getPath('userData'), 'config'); |
58 | 59 | ||
59 | // Replacing app.asar is not beautiful but unforunately necessary | 60 | // Replacing app.asar is not beautiful but unforunately necessary |
60 | export const DICTIONARY_PATH = path.join(__dirname, 'dictionaries').replace('app.asar', 'app.asar.unpacked'); | 61 | export const DICTIONARY_PATH = asarPath(path.join(__dirname, 'dictionaries').replace('app.asar', 'app.asar.unpacked')); |