From 3a541cb11baf332cd254756f9dc7e1d9f029c553 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 4 Sep 2026 15:45:55 +0800 Subject: [PATCH] config: allow-sync-clipboard-between-sessions is a local setting The key is read through `LocalConfig::get_option` and set from the desktop settings page, but the constant lived in rustdesk's `src/clipboard.rs` and the key was in no settings list, so a custom client could not preset it through `default-settings` or `override-settings`. Define it here with the other option keys and list it under `KEYS_LOCAL_SETTINGS`. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.rs b/src/config.rs index 0e5f18469..6e6b6ca22 100644 --- a/src/config.rs +++ b/src/config.rs @@ -3023,6 +3023,8 @@ pub mod keys { pub const OPTION_FLUTTER_PEER_CARD_UI_TYLE: &str = "peer-card-ui-type"; pub const OPTION_FLUTTER_CURRENT_AB_NAME: &str = "current-ab-name"; pub const OPTION_ALLOW_REMOTE_CM_MODIFICATION: &str = "allow-remote-cm-modification"; + pub const OPTION_ALLOW_SYNC_CLIPBOARD_BETWEEN_SESSIONS: &str = + "allow-sync-clipboard-between-sessions"; pub const OPTION_PRINTER_INCOMING_JOB_ACTION: &str = "printer-incomming-job-action"; pub const OPTION_PRINTER_ALLOW_AUTO_PRINT: &str = "allow-printer-auto-print"; @@ -3122,6 +3124,7 @@ pub mod keys { OPTION_DISABLE_DISCOVERY_PANEL, OPTION_PRE_ELEVATE_SERVICE, OPTION_ALLOW_REMOTE_CM_MODIFICATION, + OPTION_ALLOW_SYNC_CLIPBOARD_BETWEEN_SESSIONS, OPTION_ALLOW_AUTO_RECORD_OUTGOING, OPTION_HIDE_RECORDING_BUTTON, OPTION_VIDEO_SAVE_DIRECTORY,