summarylogtreecommitdiffstats
path: root/fix-spellchecking.patch
blob: 9c5eb4174423b6c126f8be2546b020fd396cc751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ura package.orig/src/preload/spellchecking.js package.new/src/preload/spellchecking.js
--- package.orig/src/preload/spellchecking.js	2019-03-13 20:47:32.327586968 +0100
+++ package.new/src/preload/spellchecking.js	2019-03-13 20:59:36.190988478 +0100
@@ -22,7 +22,7 @@
 	async loadDictionaries() {
 		const embeddedDictionaries = spellchecker.getAvailableDictionaries();
 
-		const directory = jetpack.cwd(app.getAppPath(), app.getAppPath().endsWith('app.asar') ? '..' : '.', 'dictionaries');
+		const directory = jetpack.cwd('/usr/share/hunspell');
 		const installedDictionaries = (await directory.findAsync({ matching: '*.{aff,dic}' }))
 			.map((fileName) => path.basename(fileName, path.extname(fileName)));