geluk / pass-winmenu

An easy-to-use password manager for Windows, compatible with pass.
MIT License
385 stars 25 forks source link

Clipboard Empty (Windows 10) #8

Closed danprime closed 6 years ago

danprime commented 7 years ago

After seeing notification that the password has been copied to clipboard the paste is empty.

Steps to Replicate:

  1. Start Pass-winmenu
  2. Hit the Hot Key combo
  3. Select the Secret
  4. Enter password for decryption key
  5. See notification
  6. Try to paste from clipboard (Ctrl-V)

ERR empty or clipboard is not loaded.

majkinetor commented 7 years ago

Anything in event viewer ? What happens if you install some clipboard manager such as copyq ?

geluk commented 7 years ago

Do you get an error as well, or just an empty clipboard? Would you mind trying out this build to see if the issue persists?

danprime commented 7 years ago

@majkinetor I can't seem to see the logs for Winmenu. Should I look for something specific?

danprime commented 7 years ago

@Baggykiin Thanks for looking into this.

No error message. Just the notification that it's been successfully copied but empty clipboard.

I tried the build and it's the same effect (empty clipboard).

geluk commented 7 years ago

I've ran into similar issues in the past. The C# clipboard API is notoriously unreliable, often simply failing silently instead of throwing any exceptions. I've made a test build which checks if setting the clipboard text succeeded, and, if not, tries to set it using a different method (Calling WinAPI directly).

Would you mind testing said build to see if that fixes anything? You can download it here.

danprime commented 7 years ago

@Baggykiin I totally understand about clipboard API unreliability!

Unfortunately, the version you sent also does not work. Is there somewhere specific you want me to check for the logs?

geluk commented 7 years ago

Sorry for the late reaction, I'm currently on holiday so I won't be able to do much development for the next 2-3 weeks. What I'd like to know is if you got any error messages this time, or did it still fail silently?

It's possible that another application is locking the clipboard, preventing pass-winmenu from accessing it. If you prevent that application from starting on boot, and then reboot your PC (so that it doesn't get a chance to access the clipboard) pass-winmenu might work. Obviously it might be somewhat difficult to figure out which application that is, so you could also try rebooting into safe mode (which does not allow any program to start on boot) and testing again. Obviously that's not a real solution to your problem, but it might at least help us figure out what's causing it.