mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-25 05:09:04 +08:00
deal with flutter SYSTEM user
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
728985e3bf
commit
ae8d97eb72
@ -106,7 +106,12 @@ class PlatformFFI {
|
|||||||
debugPrint('initializing FFI $_appType');
|
debugPrint('initializing FFI $_appType');
|
||||||
try {
|
try {
|
||||||
_translate = dylib.lookupFunction<F2, F2>('translate');
|
_translate = dylib.lookupFunction<F2, F2>('translate');
|
||||||
_dir = (await getApplicationDocumentsDirectory()).path;
|
try {
|
||||||
|
// SYSTEM user failed
|
||||||
|
_dir = (await getApplicationDocumentsDirectory()).path;
|
||||||
|
} catch (e) {
|
||||||
|
debugPrint('Failed to get documents directory: $e');
|
||||||
|
}
|
||||||
_ffiBind = RustdeskImpl(dylib);
|
_ffiBind = RustdeskImpl(dylib);
|
||||||
_startListenEvent(_ffiBind); // global event
|
_startListenEvent(_ffiBind); // global event
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user