summarylogtreecommitdiffstats
path: root/fix-dictionaries.patch
blob: 7eb148dbaca407d3f620baba8327d387f1495cd0 (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-02-24 19:52:13.168606313 +0100
+++ package.new/src/preload/spellchecking.js	2019-02-24 19:52:55.662351780 +0100
@@ -21,7 +21,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)));