8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
16 lines
553 B
Diff
16 lines
553 B
Diff
--- a/src/utils.cpp
|
|
+++ b/src/utils.cpp
|
|
@@ -9,12 +9,7 @@ char* FcitxLibPinyinGetSysPath(LIBPINYIN_LANGUAGE_TYPE type)
|
|
#ifdef LIBPINYIN_TOOLS_FOUND
|
|
if (type == LPLT_Simplified) {
|
|
#endif
|
|
- /* portable detect here */
|
|
- if (getenv("FCITXDIR")) {
|
|
- syspath = fcitx_utils_get_fcitx_path_with_filename("datadir", "libpinyin/data");
|
|
- } else {
|
|
- syspath = strdup(LIBPINYIN_PKGDATADIR "/data");
|
|
- }
|
|
+ syspath = strdup(LIBPINYIN_PKGDATADIR "/data");
|
|
#ifdef LIBPINYIN_TOOLS_FOUND
|
|
}
|
|
else {
|