blob: 7cf1593994b2a57f7b7c5ff69f5a7713443b52e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- unix/ibus/path_util.cc.org 2010-09-18 13:05:52.470217916 +0900
+++ unix/ibus/path_util.cc 2010-09-18 13:07:06.436608058 +0900
@@ -30,14 +30,22 @@
#include "unix/ibus/path_util.h"
namespace {
+#ifdef __FreeBSD__
+const char kInstalledDirectory[] = "@@LOCALBASE@@/share/ibus-mozc";
+#else
const char kInstalledDirectory[] = "/usr/share/ibus-mozc";
+#endif
}
namespace mozc {
namespace ibus {
string GetIconPath(const string &icon_file) {
+#ifdef __FreeBSD__
+ return string("@@LOCALBASE@@/share/ibus-mozc/icons/") + icon_file;
+#else
return kInstalledDirectory + string("/") + icon_file;
+#endif
}
} // namespace ibus
|