Hello Matt,I had the same experience a few years ago using kpcli. I found out kpcli copies the passwords to X11's primary clipboard, not the 'regular' GUI clipboard you and I are used to.
I wrote up a (Dutch) blog post about this problem and its solution: https://www.fwiep.nl/blog/wachtwoordbeheer-met-kpcli-keepassMy fix was to edit the Perl script that interacts with the clipboards (perl5/lib/perl5/Clipboard/XClip.pm). Somewhere around line 33, there is the definition and selection of clipboards to use:
sub all_selections { qw(primary buffer clipboard secondary) } sub favorite_selection { my $self = shift; ($self->all_selections)[0] }When you edit the last [0] to read [2], the 'clipboard' clipboard is selected instead of the 'primary' clipboard.
Hope this helps, Frans-Willem On 19-11-2021 16:16, Matt Dizak via orca-list wrote:
Ohhh, I didn't know that. Excellent, and kpcli is exactly what I was looking for. Thanks! Only issue I have with it is it doesn't work, or at least for me on Linux Mint which is basically Ubuntu 20.04. It doesn't copy anything to the clipboard. I can view the entries via the 'show' command, then scroll up in flat review to copy the password, but that's a pain. The copy to clipboard commands simply don't work, even if I clear the clipboard first with 'xx' command. Hmmm... Matt On 11/19/21, Christian Schoepplein via orca-list <orca-list gnome org> wrote:On Fri, November 19, 2021 1:03 am, Matt Dizak via orca-list wrote:I've been having the same issues myself with Keepassx/2 and others. So figured I'd quickly write out a password manager as a CLI tool in Python, and open source it.There is already a linux CLI for keepass called kpcli. I am using this tool to access our password databases and it is very good to use, but having a accessible tool for the GUI would be good as well orcourse. Cheers, Schoepp _______________________________________________ orca-list mailing list orca-list gnome org https://mail.gnome.org/mailman/listinfo/orca-list Orca wiki: https://wiki.gnome.org/Projects/Orca Orca documentation: https://help.gnome.org/users/orca/stable/ GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html_______________________________________________ orca-list mailing list orca-list gnome org https://mail.gnome.org/mailman/listinfo/orca-list Orca wiki: https://wiki.gnome.org/Projects/Orca Orca documentation: https://help.gnome.org/users/orca/stable/ GNOME Universal Access guide: https://help.gnome.org/users/gnome-help/stable/a11y.html
--Met de .ASC-bijlage(n) kan uw e-mailprogramma garanderen dat bovenstaand bericht van mij afkomstig is, en onderweg niet door derden is aangepast.
Attachment:
OpenPGP_0xC0932DFE211E9A9D.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature