From cff3feb604807766cf32852c5395b71de08a936a Mon Sep 17 00:00:00 2001 From: Hieu Tran Date: Tue, 22 Apr 2025 14:20:45 +1000 Subject: [PATCH] Fix: unable to copy question commands to remote-desktop clipboard --- remote-desktop/agent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/remote-desktop/agent.py b/remote-desktop/agent.py index 571a994..a35727d 100644 --- a/remote-desktop/agent.py +++ b/remote-desktop/agent.py @@ -23,6 +23,7 @@ class RequestHandler(BaseHTTPRequestHandler): self.respond(400, {"error": "Missing clipboard content"}) return + clipboard_content = clipboard_content.replace("'", "'\\''") command = "echo -n '" + clipboard_content + "' | xclip -selection clipboard &" subprocess.Popen(command, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)