mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 14:59:02 +08:00
remove unused code
This commit is contained in:
parent
eacc840c54
commit
75c60660e7
@ -1,5 +1,4 @@
|
||||
#include <dlfcn.h>
|
||||
#include <string>
|
||||
#include "my_application.h"
|
||||
|
||||
#define RUSTDESK_LIB_PATH "librustdesk.so"
|
||||
@ -9,13 +8,6 @@ bool gIsConnectionManager = false;
|
||||
void print_help_install_pkg(const char* so);
|
||||
|
||||
bool flutter_rustdesk_core_main() {
|
||||
const char* appdir = getenv("APPDIR");
|
||||
const char* apprun_ld_library_path = getenv("APPRUN_LD_LIBRARY_PATH");
|
||||
if (appdir && apprun_ld_library_path) {
|
||||
std::string new_ld_library_path = std::string(apprun_ld_library_path) + ":" + getenv("LD_LIBRARY_PATH");
|
||||
printf("Setting LD_LIBRARY_PATH to %s\n", new_ld_library_path.c_str());
|
||||
setenv("LD_LIBRARY_PATH", new_ld_library_path.c_str(), 1);
|
||||
}
|
||||
void* librustdesk = dlopen(RUSTDESK_LIB_PATH, RTLD_LAZY);
|
||||
if (!librustdesk) {
|
||||
fprintf(stderr,"Failed to load \"librustdesk.so\"\n");
|
||||
|
Loading…
Reference in New Issue
Block a user