-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option or separate shortcut to allow multiple use of clipboard data #6640
Comments
Wiping the inter-VM clipboard after pasting into a VM is an intentional security feature.
I am skeptical, but maybe if someone wants to submit a PR for it (should discuss here first, though). |
Definitely doable. Rather easy. Could be kept as CLI only (special feature) to avoid confusing novice users. Something like GUI Daemon could only update metadata and modification time of clipboard data to trigger systray notification. |
Since PR for #7730 is merged now, I can work on this. Three PRs will follow shortly. One for GUI Daemon and validator update for |
@marmarta I have written the GUI Daemon patch for multiple use of global clipboard. It pastes to the destination clipboard, updates the DATA file modification time and writes the relevant metadata (paste=1, successful=1, cleared=0). I tested it and it works. The only remaining part is the systray widget notification. I do not know the event to use with p.s.: Got it. it is |
Well, the default (forget after pasting) could be kept, and an additional key sequence for "paste, but preserve" could be added. |
The patch is exactly like that. You could define the additional key with |
The problem you're addressing (if any)
Currently the data in the clipboard can be pasted only once to any VM; the data is cleared after that.
Describe the solution you'd like
In some cases it would be useful to paste the clipboard data multiple times.
Where is the value to a user, and who might that user be?
The feature may save time for the user wanting to paste the clipboard into multiple VMs (e.g. to execute a command on different terminals).
I see that the feature may affect privacy of clipboard data to some extent.
Maybe the new feature should be configurable, or there should be a new key combination like "paste&keep" to paste the clipboard into the local one, but keep the data.
Maybe there could also be a key combination to "forget" the clipboard contents (if there is a new default to keep the contents).
Describe alternatives you've considered
Pasting to a VM and then immediately re-copying might do the trick.
Additional context
Relevant documentation you've consulted
Related, non-duplicate issues
The text was updated successfully, but these errors were encountered: