[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kde3support/kdeui
From: Hasso Tepper <hasso () kde ! org>
Date: 2007-08-21 14:14:47
Message-ID: 1187705687.242902.14445.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 702913 by hasso:
Forwardport 702908, don't know how useful it is here though.
Make spellchecking (both ispell and aspell) work on systems using pkgsrc
like NetBSD and DragonFly.
M +8 -0 k3sconfig.cpp
--- trunk/KDE/kdelibs/kde3support/kdeui/k3sconfig.cpp #702912:702913
@@ -468,6 +468,8 @@
dir.setFile ("/usr/local/share/ispell");
if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/share/ispell");
+ if (!dir.exists() || !dir.isDir())
+ dir.setFile ("/usr/pkg/lib");
/* TODO get them all instead of just one of them.
* If /usr/local/lib exists, it skips the rest
if (!dir.exists() || !dir.isDir())
@@ -538,6 +540,8 @@
dir.setFile ("/usr/share/aspell");
if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/local/share/aspell");
+ if (!dir.exists() || !dir.isDir())
+ dir.setFile ("/usr/pkg/lib/aspell");
if (!dir.exists() || !dir.isDir()) return;
kDebug(750) << "K3SpellConfig::getAvailDictsAspell "
@@ -620,6 +624,8 @@
dir.setFile ("/usr/local/share/ispell");
if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/share/ispell");
+ if (!dir.exists() || !dir.isDir())
+ dir.setFile ("/usr/pkg/lib");
/* TODO get them all instead of just one of them.
* If /usr/local/lib exists, it skips the rest
if (!dir.exists() || !dir.isDir())
@@ -696,6 +702,8 @@
dir.setFile ("/usr/share/aspell");
if (!dir.exists() || !dir.isDir())
dir.setFile ("/usr/local/share/aspell");
+ if (!dir.exists() || !dir.isDir())
+ dir.setFile ("/usr/pkg/lib/aspell");
if (!dir.exists() || !dir.isDir()) return;
kDebug(750) << "K3SpellConfig::getAvailDictsAspell "
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic