Hi!
When I try to copy/paste a password with the "paste once" mode enabled in Options (Application/Clipboard/Advanced), it seems the clipboard is cleared immediately after I copy it, and I'm unable to paste. It also doesn't show up in clipboard history (Win+V). When I enable "legacy" mode, it works.
I've had this problem in the past and I think it was related to processes that monitor and read the clipboard in the background. For example when a RDP or TeamViewer session is open, it syncs the clipboard to the remote host and that triggers the "paste once" event in RDM which clears the clipboard - at least I think that is what's happening. Because of this, I always switched it back to "legacy" mode as a workaround.
Even if I close all applications and disable the clipboard history feature in Windows, "paste once" still doesn't work.
Do you have any ideas?
Maybe you can implement a short delay after copying where the clipboard is protected from being cleared by the paste-once feature.
Daniel
PS: Maybe there's an API for the Windows clipboard history to mark a value as sensitive information (or not include it at all in the history). Because otherwise, whenever you press Win+V you might see previously copied passwords in clear text on screen.
You can use the Clipboard Diagnostic for this exact scenario. (Help > Clipboard Diagnostic)
Copy a password and try to paste it into Notepad, now what do you see in the Allowlisted grid?
P.S. If you are not on the latest release, we fixed a bug a few weeks ago where an unidentified handle would try to fetch the contents of the clipboard causing this exact issue. If you have an older version without the fix, you should see Idle took the content of the clipboard. If that is the case, you can either upgrade or Blocklist the idle process and things will start working again.
Best regards,
Stéfane Lavergne
Oh sorry I didn't post my Version: RDM 2022.1.13.0 on Windows 11 21H2, DVLS 2022.1.9.0
Thanks for showing me the Clipboard Diagnostics! It showed this process:
Process name: YourPhoneServer
Command Line: "C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21121.256.0_x64__8wekyb3d8bbwe\YourPhoneServer/YourPhoneServer.exe" -Embedding
That's the Microsoft "Your Phone" app that syncs the clipboard to my smartphone :)
I disabled the clipboard syncing there, but pasting still does not work. And now there is no more entry in the Allowlisted grid after a failed copy/paste.
Can you try restarting RDM or even rebooting. Sounds like an odd request but you see the clipboard is comprised of many listeners, it only takes one of them to crash and/or break the chain for the clipboard to stop responding.
Stéfane Lavergne
After restarting it is still the same problem. The clipboard is empty after I click "Copy Password" and the "Password was copied to the Clipboard" notification shows up, but there's no entry in Clipboard Diagnostic.
Daniel
At this point your only option is to disable the Paste Once clipboard features.File > Options > Application > Clipboard > Advanced and set the two options as specified below.
This will make the clipboard fallback to the Legacy mode and remove the Copy Username & Password button from the UI since it can only be achieved using the Paste Once clipboard method.
Stéfane Lavergne
But paste once is supposed to work, correct?
I had it set to Legacy because it didn't work in the past, but now I just wanted to see if I can get it to work again.
I'll try on a different computer and maybe reset my RDM settings.
Yes, paste once is supposed to work.
That is it should work flawlessly with Notepat.exe for example but you might have to "tweak" the configuration for other applications. Why? Some applications, like Chrome for example, will take a "look" at the content of the clipboard before the actual paste, which in turns makes RDM clear the clipboard and then there is nothing to paste.
So first step would be to test with notepad and if that works try with the other application. If notepad works but others don't try setting a delay of 100 ms for that application (Help > Clipboard Diagnostic > Configuration (tab) > Delays). RDM has a pre-defined set of delays all set to 100 ms for many know applications that have this behaviour (Chrome, Edge, Brave Browser...). 150 ms or 200 ms may also work in this case test and try, that's why we created the Clipboard Diagnostic window.
So what does the 100 ms do? The answer is somewhat long, if you want the detailed explanation let me know.
Stéfane Lavergne
Oh yes, it does work with Notepad. I tried pasting in my text editor Sublime Text. There it does not paste, I don't get any entry in Clipboard Diagnostics "Status" tab and even if I add a delay entry for process name "sublime_text" (tried 100ms and 250ms) it doesn't work.
So the issue is with Sublime Text, I will investigate and try to figure out if we can resolve this for you.
Best regards,
Stéfane Lavergne
Indeed it seems to only affect Sublime Text. I also get an error Message when I try to paste into OneNote.
Another small issue I found: When you switch to "Paste Once", the option below "Clear clipboard delay" gets grayed out, but it is still active. (The clipboard still gets cleared after 10 seconds, even though the option is not available)
What is the OneNote error message?
As for Clear clipboard delay I think you might be correct. I will investigate.
Stéfane Lavergne
Awesome, Thanks!
If fixed the clipboard delay, you can now disable and/or configure it even when in "Paste Once". Will be available in v2022.1.17.
Now look at why Sublime Text, I have a theory testing that theory now.
Best regards,
Stéfane Lavergne
So the issue with Sublime Text is that it doesn't identify itself when "opening" the clipboard.
When RDM receives a paste request it first identifies the requesting process then evaluates if it responds with the data or not. This allows RDM to control who can get the data and how many times you can paste it and allows RDM to go to the next paste (password) in the case of copy "username & password".
What has changed? Well, in version v2022.1, by default, we do not push supply clipboard data to an unidentified process. It's a safety consideration. The good news is there is a work around possible, although not yet available in the GUI.
Add the following to your %localappdata%\Devolutions\RemoteDesktopManager\RemoteDesktopManager.cfg file, first close RDM, edit the file, open RDM
<DisableClipboardNullRequesterCheck>true</DisableClipboardNullRequesterCheck>
Give it a try and let me know how it goes.
Best regards,
Stéfane Lavergne
Thanks, I will try this!
I know it's a late reply, but setting DisableClipboardNullRequesterCheck worked! (put it as a child item of the top <Option> tag.)
Pasting in Sublime Text now works again.
Also, Sorry I missed your question about OneNote. It still does not work there (RDM 2022.1.27.0 and "OneNote for Windows 10" App running in Windows 11) and I get an error:
I couldn't find the exact English translation, but it's something like "We could not paste the contents from the clipboard. Try to copy and paste again."
This is what I see in Clipboard Diagnostics:
YourPhoneServer popped up on copy. This is already in the Disallowed list.
svchost (ClipboardSvcGroup) popped up on paste, but adding that to Disallowed or Delays didn't help.
Thank you!
I know it's a late reply, but setting DisableClipboardNullRequesterCheck worked! (put it as a child item of the top <Option> tag.)
Pasting in Sublime Text now works again.
Thank you for the update.
As for OneNote, I will need to investigate. It could be that OneNote uses the new Windows Clipboard History feature for the copy/paste. This would not be ideal but I wouldn't put it pass MS to do such a thing.
Stéfane Lavergne
OK, Thank you!