I use KeepassX only for unimportant sites and it's set up to autostart. Entering password every time is quite annoying.
Asked
Active
Viewed 1,356 times
1
-
1Have 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
-
2Of 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 08 '18 at 14:23
-
3Does this answer your question? [Start KeePassXC on boot](https://askubuntu.com/questions/1210158/start-keepassxc-on-boot) – karel Apr 13 '20 at 00:24
-
@karel I'm not using Linux currently, so can't check – janot Apr 13 '20 at 07:10
2 Answers
0
bash script on startup:
#!/bin/bash
xdotool type yourpassword
xdotool key Return
janot
- 1,601
- 3
- 21
- 34
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