janot Asked: 2014-08-21 07:09:23 +0800 CST2014-08-21 07:09:23 +0800 CST 2014-08-21 07:09:23 +0800 CST Auto-enter master password in KeePassX on launch 772 I use KeepassX only for unimportant sites and it's set up to autostart. Entering password every time is quite annoying. password 2 Answers Voted Best Answer janot 2014-08-24T20:54:32+08:002014-08-24T20:54:32+08:00 bash script on startup: #!/bin/bash xdotool type yourpassword xdotool key Return MIchal Štěpánek 2018-01-09T06:12:16+08:002018-01-09T06:12:16+08:00 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
bash script on startup:
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 :)
The entry in gnome keyring I created according to this https://gist.github.com/dAnjou/b99f55de34b90246f381e71e3c8f9262