mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-27 08:09:22 +00:00
`IS_X11` now asks `drm_capture_enabled()`, which reads Config, and it is computed in `global_init()`. `core_main()` ran that before `load_custom_client()`, so on a Linux custom client the config loaded from the stock "RustDesk" path before the app name was set and was never reloaded; the root then synced that copy over the client's own settings. Load the custom client first. On Windows and macOS `global_init()` does nothing, so only the Linux startup order changes. The DRM checkbox and the home-page "Enable" cards also showed on installed builds without the drm feature (NixOS, source builds, --no-drm), where the option has no effect. They now also need `is-drm-capture-supported`, a new `main_get_common` key that reports whether drm is compiled in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF