labi-le / belphegor

Sharing the clipboard between your computers
MIT License
5 stars 0 forks source link

Duplicating clipboard contents in macOS and visible via Pastebot #24

Closed ylluminate closed 1 week ago

ylluminate commented 2 months ago

I use Pastebot to manage my clipboard/pasteboard on macOS. When I run the server on an Apple Silicon Mac and copy contents thereon, I see contents usually being duplicated (oddly it's not 100% of the time). Here's a short screencast to illustrate this strange behavior: https://share.zight.com/NQu9ZZbq

I don't really see any strange / unexpected behavior in the debug output:

{"level":"trace","node.MonitorBuffer":"local clipboard data changed","time":"2024-09-04T22:39:26-04:00","caller":"github.com/labi-le/belphegor/internal/node/node.go:278"}
{"level":"debug","time":"2024-09-04T22:39:27-04:00","caller":"github.com/labi-le/belphegor/internal/node/node.go:226","message":"sent 886ba5a7-30d6-4437-9569-e87bcd6caf0f to user@hostname.lan (bd2bdf7b-e0b6-4945-ae63-2ecddd9140f1) -> 192.168.0.24:63678"}
{"level":"trace","node.MonitorBuffer":"local clipboard data changed","time":"2024-09-04T22:39:40-04:00","caller":"github.com/labi-le/belphegor/internal/node/node.go:278"}
{"level":"debug","time":"2024-09-04T22:39:40-04:00","caller":"github.com/labi-le/belphegor/internal/node/node.go:226","message":"sent 886ba5a7-30d6-4437-9569-e87bcd6caf0f to user@hostname.lan (bd2bdf7b-e0b6-4945-ae63-2ecddd9140f1) -> 192.168.0.24:63678"}
{"level":"trace","node.MonitorBuffer":"local clipboard data changed","time":"2024-09-04T22:39:54-04:00","caller":"github.com/labi-le/belphegor/internal/node/node.go:278"}
{"level":"debug","time":"2024-09-04T22:39:55-04:00","caller":"github.com/labi-le/belphegor/internal/node/node.go:226","message":"sent 886ba5a7-30d6-4437-9569-e87bcd6caf0f to user@hostname.lan (bd2bdf7b-e0b6-4945-ae63-2ecddd9140f1) -> 192.168.0.24:63678"}
ylluminate commented 2 months ago

This seems to also have a side effect that makes clop images not paste and only pastes the text and not the actual image.

labi-le commented 2 months ago

ive pointed out this problem before, i dont have macos to fix it