Description: pre-set SIGIL_DICTIONARIES to the system dictionaries in /usr/share/hunspell
Author: Mattia Rizzolo <mattia@mapreri.org>
Forwarded: no
Last-Update: 2015-08-03

--- a/src/Sigil/Resource_Files/bash/sigil-sh_install
+++ b/src/Sigil/Resource_Files/bash/sigil-sh_install
@@ -21,5 +21,11 @@
 export LD_LIBRARY_PATH
 #export QT_DEBUG_PLUGINS=1 
 
+# Use the system dictionaries
+if [ -z "$SIGIL_DICTIONARIES" ]; then
+    SIGIL_DICTIONARIES=/usr/share/hunspell
+    export SIGIL_DICTIONARIES
+fi
+
 exec ${CMAKE_INSTALL_PREFIX}/lib/sigil/${DESTINATION_EXECUTABLE_NAME} "$@"
 
