Menu

Paste Entries and KDE‏

willem
2013-06-12
2013-06-13
  • willem

    willem - 2013-06-12

    I think I have discovered a bug in KeePass 2.21 and KDE regarding the pasting of copied entries.

    I am currently using KeePass version 2.21 on KDE 4.10.4 (Kubuntu 13.04). This version of KeePass is basically the version from the repository. The version of Mono I use is 2.10.8.1 and this is also the version from the repository.

    I discovered that I could copy entries using the context menu "Clipboard/Copy Entries" but pasting them using "Clipboard/Paste Entries" simply was not possible, the menu item stayed disabled.

    So I looked at possible solutions and one mentioned is to install the xsell package. This package however was already installed. Disabling it by renaming it lead nowhere, the "Paste Entries" option stayed disabled.

    I tried the newest version of KeePass (2.22) and two test versions provided by Dominik this one and this one but also with these versions but "Paste Entries" stayed disabled.

    So finally installed MonoDevelop and started debugging the source code of KeePass 2.22. I now have it working albeit as a hack and I have a suspicion what caused it. Looking at the code the option should possibly well be disabled for any Unix user and possibly OS X as well. However I began to doubt if I am correct since this is my first try with C# and I could not find anyone reporting it on both the Open Discussion and the Help forums.

    So I am wondering: has anyone else using Keepass on Linux (/KDE) or OS X has the "Paste Entries" feature disabled when copying an entry?

     

    Last edit: willem 2013-06-12
  • Dominik Reichl

    Dominik Reichl - 2013-06-12

    This is caused by Mono not supporting custom clipboard formats.

    I've now added a workaround. KeePass now encodes custom clipboard data as data URIs (with a vendor-specific MIME type). With this, copying/pasting entries works fine on my Kubuntu 13.04.

    Here's the latest development snapshot for testing:
    http://keepass.info/filepool/KeePass_130612.zip

    Best regards,
    Dominik

     
  • willem

    willem - 2013-06-12

    Thank you for the quick fix. Is this solution also implemented for the OS X version?

    One tip for using KeePass on KDE which I learned during debugging: disable klipper. Klipper adds some sort of persistant storage to the clipboard, this is handy while debugging but not for normal use of KeePass.

     
  • Dominik Reichl

    Dominik Reichl - 2013-06-13

    Yes, this should also work on Mac OS X.

     

Log in to post a comment.

MongoDB Logo MongoDB