Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d7c4123

Browse filesBrowse files
committed
Update fcitx5 submodules
fix file permissions issues on device that uses fuse
1 parent 1bd77b3 commit d7c4123
Copy full SHA for d7c4123

File tree

Expand file treeCollapse file tree

3 files changed

+8
-2
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+8
-2
lines changed

‎app/src/main/cpp/native-lib.cpp

Copy file name to clipboardExpand all lines: app/src/main/cpp/native-lib.cpp
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <jni.h>
22

3+
#include <sys/stat.h>
4+
35
#include <memory>
46
#include <future>
57
#include <fstream>
@@ -19,6 +21,7 @@
1921
#include <fcitx-utils/i18n.h>
2022
#include <fcitx-utils/event.h>
2123
#include <fcitx-utils/eventdispatcher.h>
24+
#include <fcitx-utils/standardpath.h>
2225
#include <fcitx-utils/stringutils.h>
2326

2427
#include <quickphrase_public.h>
@@ -620,6 +623,9 @@ Java_org_fcitx_fcitx5_android_core_Fcitx_startupFcitx(JNIEnv *env, jclass clazz,
620623
env->CallStaticVoidMethod(GlobalRef->Fcitx, GlobalRef->ShowToast, *JString(env, s));
621624
};
622625

626+
umask(007);
627+
fcitx::StandardPath::global().syncUmask();
628+
623629
Fcitx::Instance().startup([&](auto *androidfrontend) {
624630
FCITX_INFO() << "Setting up callback";
625631
readyCallback();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.