mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
xclip multiple clipboard content types.
This commit is contained in:
@ -16,5 +16,5 @@ func (h *MessageHandlerCtx) clipboardSet(session types.Session, payload *message
|
||||
return nil
|
||||
}
|
||||
|
||||
return h.desktop.WriteClipboard(payload.Text)
|
||||
return h.desktop.ClipboardSetPlainText(payload.Text)
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ func (ws *WebSocketManagerCtx) Start() {
|
||||
return
|
||||
}
|
||||
|
||||
text, err := ws.desktop.ReadClipboard()
|
||||
text, err := ws.desktop.ClipboardGetPlainText()
|
||||
if err != nil {
|
||||
ws.logger.Warn().Err(err).Msg("could not get clipboard content")
|
||||
}
|
||||
|
Reference in New Issue
Block a user