Commit Graph
12 Commits
Author SHA1 Message Date
RustDeskandClaude Fable 5 006b9737e4 fix(linux): load librustdesk.so relative to the executable (#15719)
* fix(linux): load librustdesk.so relative to the executable

The runner and the Dart FFI init loaded the core library by bare name,
relying on the runner's $ORIGIN/lib RPATH. Repackaged installs (CachyOS
repo, AUR) can lose that RPATH, making the app fail to start with
"Failed to load librustdesk.so" unless users add the lib directory to
ld.so.conf. Resolve lib/librustdesk.so next to the executable first,
then fall back to the loader search path.

https://github.com/rustdesk/rustdesk/discussions/14407

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(linux): harden bundled librustdesk.so resolution

Address review: bail out when readlink() may have truncated the
executable path, and widen the Dart try block so any failure probing
the bundled library falls back to the loader search path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 16:40:27 +08:00
rustdesk 75c60660e7 remove unused code 2024-05-05 15:47:17 +08:00
rustdesk 6d09c0adcf fix ci 2024-05-04 19:34:10 +08:00
rustdesk fe1cf1105a fix ci 2024-05-04 19:10:32 +08:00
rustdesk 9454334ddd try out APPRUN_LD_LIBRARY_PATH 2024-05-04 18:29:22 +08:00
fufesou b387bc1038 fix: linux, check load dylib in main.cc (#7901)
* fix: linux, check load dylib in main.cc

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* Better error message

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* refact error message

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* Better error message

Signed-off-by: fufesou <shuanglongchen@yeah.net>

* check if "libnsl.so.1" is required, mainly for AppImage and yum

Signed-off-by: fufesou <shuanglongchen@yeah.net>

---------

Signed-off-by: fufesou <shuanglongchen@yeah.net>
2024-05-04 14:07:29 +08:00
rustdesk 54d041701c print dlopen error 2024-04-29 18:00:34 +08:00
21pages 248f18f0d8 specify linux cm target size at beginning
Signed-off-by: 21pages <pages21@163.com>
2022-11-27 18:56:27 +08:00
21pages e594657f97 fix linux RUSTDESK_LIB_PATH
Signed-off-by: 21pages <pages21@163.com>
2022-09-08 12:20:33 +08:00
Asura b38c3299d8 fix: can't find rustdesk.so 2022-08-24 17:10:34 -07:00
Kingtous 7af663809f opt: adapt --cm
Signed-off-by: Kingtous <kingtous@qq.com>

[linux] opt: add librustdesk.so filter
2022-05-30 16:28:48 +08:00
csf beb11bd31c flutter create --platforms=windows,macos,linux 2022-05-23 16:25:55 +08:00