mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
Clipboard: Move the system clipboard to a dedicated service process :^)
This commit moves the clipboard from WindowServer into a new Clipboard service program. Clipboard runs as the unprivileged "clipboard" user and with a much tighter pledge than WindowServer. To keep things working as before, all GUI::Application users now make a connection to Clipboard after making the connection to WindowServer. It could be interesting to connect to Clipboard on demand, but right now that would necessitate expanding every GUI app's pledge to include "unix" and also unveiling the clipboard portal, which I prefer not to.
This commit is contained in:
parent
f4c60740bd
commit
244efe050a
25 changed files with 447 additions and 146 deletions
7
Services/Clipboard/ClipboardServer.ipc
Normal file
7
Services/Clipboard/ClipboardServer.ipc
Normal file
|
@ -0,0 +1,7 @@
|
|||
endpoint ClipboardServer = 802
|
||||
{
|
||||
Greet() => (i32 client_id)
|
||||
|
||||
GetClipboardData() => (i32 shbuf_id, i32 data_size, String mime_type)
|
||||
SetClipboardData(i32 shbuf_id, i32 data_size, String mime_type) => ()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue