Relative Content

Tag Archive for linuxwindowselectronelectron-vue

How electron implement copy file to clipboard?

In my Electron desktop app, I receive files sent by others.
There is a button that, when clicked, performs an operation similar to ctrl+c, copying the file to the clipboard.
This way, I can use ctrl+v at other locations on the computer.
However, after checking the Electron documentation(https://www.electronjs.org/docs/latest/api/clipboard), it seems there isn’t a related API. How can I implement this?
Thanks.