1

I use KeepassX only for unimportant sites and it's set up to autostart. Entering password every time is quite annoying.

  • 1
    Have you considered using a key file instead of a password as a master key for the database? – gertvdijk Aug 20 '14 at 15:10
  • @gertvdijk Wouldn't it be too unsecure if I just store it on my disk? – janot Aug 20 '14 at 15:14
  • 2
    Of course it is insecure. But you wanted to unlock your KeePassX database without entering the password, which is insecure in any way you implement it. If you would create a script to open it and entering the password for you, it will imply to store the password in plaintext on your disk. You're asking for something insecure. – gertvdijk Aug 20 '14 at 15:38
  • Have you considered investing in a barcode scanner or a macro keyboard? – Steve Jan 8 '18 at 14:23
0

bash script on startup:

#!/bin/bash
xdotool type yourpassword
xdotool key Return
|improve this answer|||||
  • what is xdotool ? – Adam Feb 13 at 6:53
0

Truly, I am beginner, I run script from desktop, I use gnome-keyring, it is 50% working, sometimes it fails to enter the password, so you need to run it again :)

#!/bin/bash
keepassx path/to/database.kdbx
sleep 3s
secret-tool lookup keepassx database.kdbx | xdotool type --window 'database.kdbx - KeePassX' --file '-'

The entry in gnome keyring I created according to this https://gist.github.com/dAnjou/b99f55de34b90246f381e71e3c8f9262

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.