void-packages/srcpkgs/Rocket.Chat-Desktop/patches/use-system-dictionaries.patch

17 lines
576 B
Diff
Raw Normal View History

diff -ura package.orig/src/scripts/spellChecking.js package.new/src/scripts/spellChecking.js
--- src/scripts/spellChecking.js 2020-02-11 13:55:00.000000000 +0100
+++ src/scripts/spellChecking.js 2020-02-11 15:52:41.031198167 +0100
@@ -140,11 +140,7 @@
await provider.initialize();
- const appDirectoriesPath = path.join(
- remote.app.getAppPath(),
- remote.app.getAppPath().endsWith('app.asar') ? '..' : '.',
- 'dictionaries',
- );
+ const appDirectoriesPath = '/usr/share/hunspell';
const appDictionaries = await getPairsOfDictionaryFiles(appDirectoriesPath);