diff options
author | ml | 2020-02-04 20:06:07 +0100 |
---|---|---|
committer | ml | 2020-02-04 20:06:07 +0100 |
commit | c7a69eee425466136eaff7f52faac5dbc85d69e5 (patch) | |
tree | 55e4b60cca48efba73d0919fc83218a0ff2671f1 /use-system-dictionaries.patch | |
parent | 8b7fab9a4a0b13e1f81327395a30e4e61b811d3d (diff) | |
download | aur-c7a69eee425466136eaff7f52faac5dbc85d69e5.tar.gz |
upgpkg: rocketchat-desktop 2.17.5-1
Diffstat (limited to 'use-system-dictionaries.patch')
-rw-r--r-- | use-system-dictionaries.patch | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/use-system-dictionaries.patch b/use-system-dictionaries.patch index f771888a2e3c..fe7e9a323193 100644 --- a/use-system-dictionaries.patch +++ b/use-system-dictionaries.patch @@ -1,7 +1,7 @@ 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 @@ +--- 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(); @@ -10,8 +10,7 @@ diff -ura package.orig/src/scripts/spellChecking.js package.new/src/scripts/spel - 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(/-/, '_')) ++ dictionariesPath = '/usr/share/qt/qtwebengine_dictionaries'; + + let installedDictionaries = []; + if (process.platform !== 'darwin') { |