Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

print dlopen error

rustdesk54d041701c5d
diff --git a/flutter/linux/main.cc b/flutter/linux/main.cc
index aae79349a..f887e133d 100644
--- a/flutter/linux/main.cc
+++ b/flutter/linux/main.cc
@@ -9,7 +9,11 @@ bool gIsConnectionManager = false;
bool flutter_rustdesk_core_main() {
void* librustdesk = dlopen(RUSTDESK_LIB_PATH, RTLD_LAZY);
if (!librustdesk) {
- fprintf(stderr,"load librustdesk.so failed\n");
+ fprintf(stderr,"load librustdesk.so failed\n");
+ char* error;
+ if ((error = dlerror()) != nullptr) {
+ fprintf(stderr, "%s", error);
+ }
return true;
}
auto core_main = (RustDeskCoreMain) dlsym(librustdesk,"rustdesk_core_main");