From 8b1040c3cff479ddd83373ae3acdb612116cc989 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Sat, 30 Nov 2024 22:32:54 -0500 Subject: [PATCH] override config on web --- CMakeLists.txt | 2 +- src/engine.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c62a12..c156218 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/engine.cpp b/src/engine.cpp index 2ad4da5..5baa750 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -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");