Skip to content

Commit

Permalink
fix keyboard/global config not updatable
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Sep 21, 2024
1 parent f4db2e4 commit ce2e4f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/fcitx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "keycode.h"
#include <emscripten.h>
#include <fcitx/instance.h>
#include <sys/stat.h>

namespace fcitx {

Expand Down Expand Up @@ -32,6 +33,8 @@ EMSCRIPTEN_KEEPALIVE bool process_key(const char *key, const char *code,
}

int main() {
umask(007); // Fix config file's mode
StandardPath::global().syncUmask();
Log::setLogRule("*=5,notimedate");
instance = std::make_unique<Instance>(0, nullptr);
auto &addonMgr = instance->addonManager();
Expand Down

0 comments on commit ce2e4f7

Please sign in to comment.