mirror of
https://github.com/sailor-sh/CK-X.git
synced 2026-07-10 16:19:35 +00:00
Fix: unable to copy question commands to remote-desktop clipboard
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user