-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sonnet: fix dictionary paths for hunspell
- Loading branch information
1 parent
e1b4e57
commit 5a3c434
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From dd12fab36a7988dabb67aafb7664b1b3700c14ae Mon Sep 17 00:00:00 2001 | ||
From: Gerasim Troeglazov <3dEyes@gmail.com> | ||
Date: Sat, 2 Mar 2019 23:57:01 +1000 | ||
Subject: Add hunspell dictionary paths for Haiku | ||
|
||
|
||
diff --git a/src/plugins/hunspell/hunspellclient.cpp b/src/plugins/hunspell/hunspellclient.cpp | ||
index 3bd7830..6774c51 100644 | ||
--- a/src/plugins/hunspell/hunspellclient.cpp | ||
+++ b/src/plugins/hunspell/hunspellclient.cpp | ||
@@ -55,6 +55,9 @@ HunspellClient::HunspellClient(QObject *parent) | ||
}; | ||
#ifdef Q_OS_WIN | ||
maybeAddPath(QStringLiteral(SONNET_INSTALL_PREFIX "/bin/data/hunspell/")); | ||
+#elif defined(Q_OS_HAIKU) | ||
+ maybeAddPath(QStringLiteral("/system/data/hunspell/")); | ||
+ maybeAddPath(QStringLiteral("~/config/non-packaged/data/hunspell/")); | ||
#else | ||
maybeAddPath(QStringLiteral("/System/Library/Spelling")); | ||
maybeAddPath(QStringLiteral("/usr/share/hunspell/")); | ||
-- | ||
2.19.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters