Skip to content

Commit

Permalink
override config on web (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Dec 1, 2024
1 parent 4594aab commit c421d51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include(ECMUninstallTarget)
option(ENABLE_TEST "Build Test" On)
option(ENABLE_COVERAGE "Build the project with gcov support (Need ENABLE_TEST=On)" Off)

find_package(Fcitx5Core 5.1.2 REQUIRED)
find_package(Fcitx5Core 5.1.12 REQUIRED)
find_package(Fcitx5Module REQUIRED COMPONENTS Clipboard TestFrontend)
find_package(Gettext REQUIRED)
find_package(PkgConfig REQUIRED)
Expand Down
3 changes: 2 additions & 1 deletion src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ AnthyEngine::AnthyEngine(fcitx::Instance *instance)
FCITX_ANTHY_INFO() << "Anthy: " << msg;
},
0);
if constexpr (fcitx::isAndroid() || fcitx::isApple()) {
if constexpr (fcitx::isAndroid() || fcitx::isApple() ||
fcitx::isEmscripten()) {
const auto &sp = fcitx::StandardPath::global();
std::string anthy_conf = sp.locate(fcitx::StandardPath::Type::Data,
"anthy/anthy-unicode.conf");
Expand Down

0 comments on commit c421d51

Please sign in to comment.