diff --git a/Userland/Services/SpiceAgent/SpiceAgent.cpp b/Userland/Services/SpiceAgent/SpiceAgent.cpp index 895c6753d6..ff06168fef 100644 --- a/Userland/Services/SpiceAgent/SpiceAgent.cpp +++ b/Userland/Services/SpiceAgent/SpiceAgent.cpp @@ -53,6 +53,12 @@ ErrorOr SpiceAgent::start() ErrorOr SpiceAgent::on_clipboard_update(String const& mime_type) { + // NOTE: If we indicate that we don't support clipboard by demand, the spice server will ignore our messages, + // but it will do some ugly debug logging.. so let's just not send anything instead. + if (!m_capabilities.contains_slow(Capability::ClipboardByDemand)) { + return {}; + } + // If we just copied something to the clipboard, we shouldn't do anything here. if (m_clipboard_dirty) { m_clipboard_dirty = false;