mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
244efe050a
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.
13 lines
320 B
CMake
13 lines
320 B
CMake
compile_ipc(ClipboardServer.ipc ClipboardServerEndpoint.h)
|
|
compile_ipc(ClipboardClient.ipc ClipboardClientEndpoint.h)
|
|
|
|
set(SOURCES
|
|
ClientConnection.cpp
|
|
ClipboardClientEndpoint.h
|
|
ClipboardServerEndpoint.h
|
|
Storage.cpp
|
|
main.cpp
|
|
)
|
|
|
|
serenity_bin(Clipboard)
|
|
target_link_libraries(Clipboard LibCore LibIPC)
|