p0deje / Maccy

Lightweight clipboard manager for macOS
https://maccy.app
MIT License
13.04k stars 549 forks source link

Clipboard sync for Chrome remote desktop not working #948

Closed arichardson closed 15 hours ago

arichardson commented 2 weeks ago

Before Submitting Your Feature Request

Problem

I am not able to get Maccy to work as expected with Chrome remote desktop, changing the selected item does not sync the clipboard to the remote system when I select a new item, instead it keeps the previous clipboard entry.

It appears that there is no web API to detect clipboard change, so the remote desktop synchronization takes place whenever the window loses focus. I previously used CopyQ and that worked fine - I believe this is because the CopyQ selection popup menu is a different app that removes focus from the remote desktop window, so it happened to work.

Solution

I believe an easy workaround for this would be to briefly remove focus before pasting either unconditionally or when the foreground app is Chrome (app ID is com.google.Chrome or com.google.Chrome.app.<randomstring> when running in a separate Window).

p0deje commented 2 weeks ago

Interesting, it might as well help with pasting to Microsoft RDP sessions. I'll play around.

p0deje commented 15 hours ago

I've added a fix for Chrome Remote Desktop.app, can you check when 2.2. is released? It won't work for Chrome because this is a hacky workaround that I don't want to be applied for all regular copies in Chrome window.