Based on this extremely useful answer Start KeePassXC on boot I've almost got the desired result of unlocking keepassxc on login to work.
However, I (and another user who answer-commented about the same issue) have one problem remaining that keep it from being useful. Namely, per the linked answer, I give the command...
secret-tool lookup keepass <database_name> | keepassxc --pw-stdin <path-to-your-database>.kbdx
...and this works in that keepassxc is started... but I get this prompt on the next line after the command
Database password:
and the script hangs waiting for input.
The parts of the script work... I can issue
secret-tool lookup keepass <database_name>
and I get the right password typed out.
I can issue
echo <password> | keepassxc --pw-stdin <path-to-your-database>.kbdx
and it starts keepassxc and logs in... but I still get the prompt and the script hanging.
If I do
echo <password> | keepassxc --pw-stdin <path-to-your-database>.kbdx &
I still get the prompt and hang, but I can hit enter and it works.
So it appears that I need to supply an enter somehow?
- Ubuntu version: 18.04
- keepassxc version: 2.6.4