summarylogtreecommitdiffstats
path: root/use-system-dictionaries.patch
blob: fe7e9a323193f9aceb977585c1a512d08c2d8806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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:02:48.469827846 +0100
@@ -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') {