Keepass2 puts incorrect atom in clipboard targets list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keepass2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
xsel (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On copying a password or entry into a clipboard Keepass2 puts an atom with id of zero into a list of formats. This makes it impossible to paste from Keepass2 into any Java program.
Following is a simple Java program which attempts to print clipboard content:
=== ClipRead.java ===
import java.awt.*;
import java.awt.
public class ClipRead {
public static void main(String... args) throws Exception {
Toolkit toolkit = Toolkit.
Clipboard clipboard = toolkit.
Object data = clipboard.
System.
}
}
=== ClipRead.java ===
Calling it after copying from Keepass2 results in a following exception:
$ java ClipRead
Atom was 0
Exception in thread "main" java.lang.
at sun.awt.
at sun.awt.
at sun.awt.
at sun.awt.
at sun.awt.
at sun.awt.
at ClipRead.
Expected result:
$ java ClipRead
[my password]
do you have xsel installed? the builtin clipboard of mono which is used without xsel installed is know to have issues.