Closed m1guer closed 1 month ago
If I remember correctly it should only emit when there is a change in clipboard content. Have you tested on other OS? or it's only wayland?
i just have one way to test, but you can test for me if you want. https://github.com/m1guer/cRopy
If you want to build an app with clipboard monitor, just use the plugin I wrote https://github.com/CrossCopy/tauri-plugin-clipboard
The demo I used in this demo is very inefficient. It's only for demo because it's easier to understand.
tauri-plugin-clipboard
uses a more efficient clipboard monitor implementation.
I don't recommend wasting time writing a monitor like what I did in the demo.
has support for wayland? i tried but no output
It supports wayland. Try the example project in that repo.
ok!
lol idk what im doing wrong, i follow the example and nothing happens
looks like the plugin is not recognizing the items in clipboard as text or other types
did you try the demo project, does it work?
no no, i will try with clean react instead of nextjs.
there should be no difference in terms of using this API
yeah its something related with nextjs.
but now i got this:[Error] clipboard.start_monitor not allowed. Permissions associated with this command: clipboard:allow-start-monitor, clipboard:monitor-all error
If you are using tauri v2 you need to enable the capabilities.
i active, but now has the same erros,
Hi, im using your code for study and i "create" a version for this to use with wayland and when i copy something the window.emit sends a lot of data. output: