Under X11, there are multiple clipboards.
Something called the PRIMARY selection is automatically set to whatever text is selected using the mouse. You can paste the contents of PRIMARY by clicking the middle mouse button in a text field.
The other clipboard works like the windows clipboard: you have to use a menu or a keyboard shortcut to copy and paste text.
KeePass uses xsel to put passwords into this second clipboard by passing it the --clipboard option. This is confusing if you're accustomed to middle-clicking to paste, because usually you have to select before copying, so text can't usually get into the clipboard without also getting into the primary selection.
If you pass both the --primary and --clipboard options to xsel, it will operate on both clipboards at once. I believe this behaviour is preferable.
Log in to post a comment.