forked from Lainports/opnsense-ports
17 lines
643 B
Text
17 lines
643 B
Text
--- extensions/spellcheck/hunspell/glue/mozHunspell.cpp~
|
|
+++ extensions/spellcheck/hunspell/glue/mozHunspell.cpp
|
|
@@ -336,6 +336,14 @@ mozHunspell::LoadDictionaryList(bool aNotifyChildProcesses)
|
|
}
|
|
}
|
|
|
|
+ // load system hunspell dictionaries
|
|
+ nsCOMPtr<nsIFile> hunDir;
|
|
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"),
|
|
+ true, getter_AddRefs(hunDir));
|
|
+ if (hunDir) {
|
|
+ LoadDictionariesFromDir(hunDir);
|
|
+ }
|
|
+
|
|
// find dictionaries from restartless extensions
|
|
for (int32_t i = 0; i < mDynamicDirectories.Count(); i++) {
|
|
LoadDictionariesFromDir(mDynamicDirectories[i]);
|