From ee9f86f58ace8e9cb629b3c01193f8347998939a Mon Sep 17 00:00:00 2001
Message-Id: <ee9f86f58ace8e9cb629b3c01193f8347998939a.1348528078.git.ismael@olea.org>
From: Ismael Olea <ismael@olea.org>
Date: Tue, 25 Sep 2012 00:17:18 +0200
Subject: [PATCH] use system hunspell (obsoleting previous
OmegaT-06-use-external-hunspell.patch )
---
.../core/spellchecker/SpellCheckerHunspell.java | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/org/omegat/core/spellchecker/SpellCheckerHunspell.java b/src/org/omegat/core/spellchecker/SpellCheckerHunspell.java
index 2e851d3..a876ba5 100644
--- a/src/org/omegat/core/spellchecker/SpellCheckerHunspell.java
+++ b/src/org/omegat/core/spellchecker/SpellCheckerHunspell.java
@@ -86,13 +86,7 @@ public class SpellCheckerHunspell implements ISpellCheckerProvider {
+ System.getProperty("os.name") + " os.arch=" + System.getProperty("os.arch"));
}
String libraryPath;
- if (Platform.isWebStart()) {
- libraryPath = Native.getWebStartLibraryPath(baseHunspellLib) + File.separator
- + mapLibraryName(baseHunspellLib);
- } else {
- libraryPath = StaticUtils.installDir() + File.separator + OConsts.NATIVE_LIBRARY_DIR
- + File.separator + mapLibraryName(baseHunspellLib);
- }
+ libraryPath = "/usr/lib/libhunspell-1.3.so.0";
hunspell = (Hunspell) Native.loadLibrary(libraryPath, Hunspell.class);
Log.log("Hunspell loaded successfully from " + libraryPath);
--
1.7.7.6