diff options
author | Matthias Lisin | 2019-01-01 00:11:05 +0100 |
---|---|---|
committer | Matthias Lisin | 2019-01-01 00:11:05 +0100 |
commit | 2db85d43eb83805217ad9f4ca2d3c466780a4850 (patch) | |
tree | 49aa0491c8aa52010a56ba656ae79e5552170efb /fix-dictionaries.patch | |
parent | 4d86983c8eb1b31c7942ce72b25895cf841857c0 (diff) | |
download | aur-2db85d43eb83805217ad9f4ca2d3c466780a4850.tar.gz |
upgpkg: rocketchat-desktop-2.14.6-2
The package now uses the system electron2. Therefore it is now a
dependency of this package. Don't worry about the additional size of the
new dependency, because this package lost most than 120M of size itself!
Spell checking now uses the system hunspell dictionaries instead of using the
ones provided by upstream. This is a breaking change and you need to
install the desired hunspell-* packages to re-enable spell checking.
Again, this is a zero sum game, the size gained by installing system
hunspell dicts is lost through removing the package dicts.
Diffstat (limited to 'fix-dictionaries.patch')
-rw-r--r-- | fix-dictionaries.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fix-dictionaries.patch b/fix-dictionaries.patch new file mode 100644 index 000000000000..4c7ea91cb285 --- /dev/null +++ b/fix-dictionaries.patch @@ -0,0 +1,20 @@ +diff -ura package.orig/src/public/lib/SpellCheck.js package.new/src/public/lib/SpellCheck.js +--- package.orig/src/public/lib/SpellCheck.js 2018-12-31 23:10:21.364014246 +0100 ++++ package.new/src/public/lib/SpellCheck.js 2018-12-31 23:21:27.153584606 +0100 +@@ -156,12 +156,10 @@ + if (this.availableDictionaries.length === 0) { + this.multiLanguage = false; + // Dictionaries path is correct for build +- this.dictionariesPath = path.join( +- app.getAppPath(), +- app.getAppPath().endsWith('app.asar') ? '..' : '.', +- 'dictionaries' +- ); +- this.getDictionariesFromInstallDirectory(); ++ if (fs.existsSync('/usr/share/hunspell')) { ++ this.dictionariesPath = '/usr/share/hunspell'; ++ this.getDictionariesFromInstallDirectory(); ++ } + } else { + this.multiLanguage = process.platform !== 'win32'; + this.availableDictionaries = this.availableDictionaries.map((dict) => dict.replace('-', '_')); |