summarylogtreecommitdiffstats
path: root/use-system-dictionaries.patch
diff options
context:
space:
mode:
authorml2020-01-31 14:12:29 +0100
committerml2020-01-31 14:12:29 +0100
commit3c79491dd815409cee6fedb12ebf4482624f9d91 (patch)
tree2786a131b48ef65f0d823a2020be3c1d7e0d48f8 /use-system-dictionaries.patch
parent70f3d7bfd78da566439ec860feff8a77399308af (diff)
downloadaur-3c79491dd815409cee6fedb12ebf4482624f9d91.tar.gz
upgpkg: rocketchat-desktop 2.17.3-2
Use system dictionaries
Diffstat (limited to 'use-system-dictionaries.patch')
-rw-r--r--use-system-dictionaries.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/use-system-dictionaries.patch b/use-system-dictionaries.patch
new file mode 100644
index 000000000000..f771888a2e3c
--- /dev/null
+++ b/use-system-dictionaries.patch
@@ -0,0 +1,17 @@
+diff -ura package.orig/src/scripts/spellChecking.js package.new/src/scripts/spellChecking.js
+--- package.orig/src/scripts/spellChecking.js 2020-01-31 14:06:58.340723019 +0100
++++ package.new/src/scripts/spellChecking.js 2020-01-31 14:08:23.626144739 +0100
+@@ -113,12 +113,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'
+ const installedDictionaries = (await fs.promises.readdir(dictionariesPath, { encoding: 'utf8' }))
+ .filter((filename) => ['.bdic'].includes(path.extname(filename).toLowerCase()))
+ .map((filename) => path.basename(filename, path.extname(filename)).replace(/-/, '_'))