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 "