Remote: paste the phone clipboard, including images, on the desktop
CI / test (push) Failing after 1m2s
CI / test (push) Failing after 1m2s
- Web UI: Ctrl+V, Ctrl+Shift+V, Shift+Insert (Cmd+V on Mac) and a Paste button send the phone clipboard (text or PNG, up to 16 MB) to the desktop over POST /api/clipboard - chandra-remote passes clipboard data to the compositor in a sealed memfd (clipboard-set-fd), replacing the 4 KB hex clipboard-set line - Compositor: new clipboard-status and input-paste commands; text is typed into the launcher, password dialog and shell popups, otherwise the paste chord is sent (Ctrl+Shift+V in terminals) - Paste data is captured when a paste starts, so a clipboard change mid-transfer can't corrupt it - VNC clipboard text limit raised from 4 KB to 1 MB - Upload endpoints are authorized with the same token check as /ws; the no-header cross-site case is refused with 403
This commit is contained in:
1 parent
8a6d19d16f
commit
d2e00b4658
11 files changed
+853
-68
No files matched your search
@@ -11,6 +11,8 @@
|
||||
|
||||
#include "chandra_fb_shm.h"
|
||||
|
||||
#define REMOTE_CLIPBOARD_MAX (16u * 1024u * 1024u)
|
||||
|
||||
#define REMOTE_AUTH_NONE 0
|
||||
#define REMOTE_AUTH_PASSWORD 1
|
||||
|
||||
@@ -78,6 +80,12 @@ void ctl_init(CtlConn *c, const char *sock_path);
|
||||
void ctl_close(CtlConn *c);
|
||||
int ctl_cmd(CtlConn *c, const char *line, char *reply, size_t reply_cap);
|
||||
int ctl_fire(CtlConn *c, const char *line);
|
||||
/* Put `len` bytes on the phone's clipboard as `mime` ("text/plain" or "image/png"); the new
|
||||
clipboard serial goes to `serial` (may be NULL). 0, or -1 when the compositor refused. */
|
||||
int remote_clipboard_set(CtlConn *c, const char *mime, const void *data, size_t len,
|
||||
unsigned long *serial);
|
||||
/* Current clipboard serial: it changes whenever something is put on the clipboard. */
|
||||
int remote_clipboard_serial(CtlConn *c, unsigned long *serial);
|
||||
void remote_osk_suppress_acquire(RemoteApp *app, int *client_flag);
|
||||
void remote_osk_suppress_release(RemoteApp *app, int *client_flag);
|
||||
void remote_osk_manual_override(RemoteApp *app);
|
||||
|
||||
Reference in new issue
Block a user