blob: f771888a2e3c3a4c3742cd94485b149dd274a0c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff -ura package.orig/src/scripts/spellChecking.js package.new/src/scripts/spellChecking.js
--- package.orig/src/scripts/spellChecking.js 2020-01-31 14:06:58.340723019 +0100
+++ package.new/src/scripts/spellChecking.js 2020-01-31 14:08:23.626144739 +0100
@@ -113,12 +113,7 @@
export const setupSpellChecking = async () => {
const embeddedDictionaries = getAvailableDictionaries();
- dictionariesPath = path.join(
- remote.app.getAppPath(),
- remote.app.getAppPath().endsWith('app.asar') ? '..' : '.',
- 'dictionaries',
- );
-
+ dictionariesPath = '/usr/share/qt/qtwebengine_dictionaries'
const installedDictionaries = (await fs.promises.readdir(dictionariesPath, { encoding: 'utf8' }))
.filter((filename) => ['.bdic'].includes(path.extname(filename).toLowerCase()))
.map((filename) => path.basename(filename, path.extname(filename)).replace(/-/, '_'))
|