blob: 9e74973e2cb397ba1edb335d4aa19f4e696e6aa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff -ura package.orig/src/scripts/spellChecking.js package.new/src/scripts/spellChecking.js
--- package.orig/src/scripts/spellChecking.js 2020-02-04 20:01:17.366294000 +0100
+++ package.new/src/scripts/spellChecking.js 2020-02-04 20:26:35.530104166 +0100
@@ -74,7 +74,7 @@
const registerSpellCheckingDictionary = async (dictionary) => {
let args;
try {
- const dictionaryPath = path.join(dictionariesPath, `${ dictionary.replace(/_/g, '-') }.bdic`);
+ const dictionaryPath = path.join(dictionariesPath, `${dictionary}.bdic`);
args = [dictionary, await fs.promises.readFile(dictionaryPath)];
} catch (error) {
args = [dictionary];
@@ -117,11 +117,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';
let installedDictionaries = [];
if (process.platform !== 'darwin') {
|