Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 19f6fe6)
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
pkgs/tools/inputmethods/fcitx-engines/fcitx-libpinyin/datapath.patch
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,16 @@ | ||
--- 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 { |
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