Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeePassXC doesn't automatically open the last database when it is first launched. #11157

Open
matj1 opened this issue Aug 12, 2024 · 11 comments
Open

Comments

@matj1
Copy link

matj1 commented Aug 12, 2024

Overview

I have KeePassXC set to automatically start at the system startup and load open the last database, so I can use it seamlessly in a web browser. But KeePassXC does not open the database until I manually open the database in KeePassXC. I don't mean unlocking the database with a password; I mean that I need to select the file in the list of last databases. But, if I close KeePassXC after that and open it, it automatically opens the last database.

I have the options like “Load previously opened databases on startup” and “Remember last used databases” (translated from a different language) enabled.

Steps to Reproduce

  1. Turn the computer on and log in.
  2. Open KeePassXC
  3. See that the last database is not opened, but it is in the list of last databases.
  4. Open the last database.
  5. Close KeePassXC.
  6. Open KeePassXC.
  7. See that the last database is automatically opened.

Expected Behavior

I expect that the last database would be automatically opened (except being unlocked by a password) when I turn the computer on and log in.

Actual Behavior

I need to manually select the database to open it.

Context

These are the three sections from ~/.config/keepassxc/keepassxc.ini; that is everything except the sections [KeeShare], [PasswordGenerator] and [Security]:

[General]
ConfigVersion=2
NumberOfRememberedLastDatabases=3
OpenPreviousDatabasesOnStartup=true
RememberLastDatabases=true
RememberLastKeyFiles=true

[Browser]
AlwaysAllowAccess=true
CustomProxyLocation=
Enabled=true

[GUI]
ApplicationTheme=dark
CompactMode=false
HidePasswords=true
HidePreviewPanel=false
MinimizeOnClose=true
MinimizeOnStartup=true
MinimizeToTray=true
ShowTrayIcon=true
TrayIconAppearance=colorful

KeePassXC - Version 2.7.9
Revision: 8f6dd13

Operating System: Arch Linux
Desktop Environment: Gnome 46
Windowing System: Wayland

@matj1 matj1 added the bug label Aug 12, 2024
@droidmonkey
Copy link
Member

droidmonkey commented Aug 12, 2024

What is located in ~./cache/keepassxc/keepassxc.ini

@matj1
Copy link
Author

matj1 commented Aug 12, 2024

[General]
LastActiveDatabase=/home/matj1/Dropbox/hesla.kdbx
LastChallengeResponse=@Variant(\0\0\0\x1c\0\0\0\0)
LastDatabases=/home/matj1/Dropbox/hesla.kdbx
LastDir=@Variant(\0\0\0\x1c\0\0\0\x2\0\0\0\x4\0\x64\0\x62\0\0\0\n\0\0\0&\0/\0h\0o\0m\0\x65\0/\0m\0\x61\0t\0j\0\x31\0/\0\x44\0r\0o\0p\0\x62\0o\0x\0\0\0\n\0m\0\x65\0r\0g\0\x65\0\0\0\n\0\0\0&\0/\0h\0o\0m\0\x65\0/\0m\0\x61\0t\0j\0\x31\0/\0\x44\0r\0o\0p\0\x62\0o\0x)
LastKeyFiles=@Variant(\0\0\0\x1c\0\0\0\0)
LastOpenedDatabases=/home/matj1/Dropbox/hesla.kdbx

[Browser]
CustomBrowserLocation=
CustomBrowserType=2

[GUI]
GroupSplitterState=@Invalid()
ListViewState=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\x1\x1\0\0\0\xf\0\0\0\0\0\0\0\x3\0\0\0\x4\0\0\0\x5\0\0\0\x6\0\0\0\a\0\0\0\b\0\0\0\t\0\0\0\n\0\0\0\v\0\0\0\x1\0\0\0\f\0\0\0\x2\0\0\0\r\0\0\0\xe\0\0\0\xf\0\0\0\0\0\0\0\n\0\0\0\f\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x4\0\0\0\x5\0\0\0\x6\0\0\0\a\0\0\0\b\0\0\0\t\0\0\0\v\0\0\0\r\0\0\0\xe\0\0\0\xf!{\0\0\0\b\0\0\0\v\0\0\0\x64\0\0\0\t\0\0\0\x64\0\0\0\a\0\0\0\x64\0\0\0\x6\0\0\0\x64\0\0\0\x3\0\0\0\x64\0\0\0\0\0\0\0\x64\0\0\0\xe\0\0\0\x64\0\0\0\r\0\0\0\x64\0\0\x2\x12\0\0\0\xf\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\xf\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0!\0\0\0\x1\0\0\0\x2\0\0\0!\0\0\0\x1\0\0\0\x2\0\0\0]\0\0\0\x1\0\0\0\0\0\0\0]\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0]\0\0\0\x1\0\0\0\0\0\0\0]\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\\\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\x3\xe8\x1\0\0\0\x64)
MainWindowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x3\x17\0\0\0S\0\0\x6\x36\0\0\x2\xcf\0\0\x3\x17\0\0\0x\0\0\x6\x36\0\0\x2\xcf\0\0\0\0\0\0\0\0\a\x80\0\0\x3\x17\0\0\0x\0\0\x6\x36\0\0\x2\xcf)
MainWindowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3 \0\0\x1\xea\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\xe\0t\0o\0o\0l\0\x42\0\x61\0r\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
PreviewSplitterState=@Invalid()
SearchViewState=@ByteArray()
SplitterState=@Invalid()

[SSHAgent]
AuthSockOverride=
SecurityKeyProviderOverride=

@droidmonkey
Copy link
Member

You might have your cache mounted as ramfs

@matj1
Copy link
Author

matj1 commented Aug 12, 2024

You might have your cache mounted as ramfs

How does that matter? KeePassXC shouldn't rely on cache like that IMO. But no, it is on the same partition as the rest of the home directory.

@droidmonkey
Copy link
Member

Can you post the cache ini file after a reboot please?

@matj1
Copy link
Author

matj1 commented Aug 12, 2024

It is the same after the last reboot. But also the issue didn't happen after the last reboot. Right before submitting this issue, I unchecked and rechecked these settings (to the same state as before AFAIK); that may have solved the problem, but it doesn't tell me where the problem was before.

@Pelle83
Copy link

Pelle83 commented Aug 19, 2024

I have a similar problem with Windows 10.
I use two databases, at start just one database is loaded, the second one has always to be opened manually.

Already tried to unceck and receck the "Load previously opened databases on startup" option.

KeepassXC 2.7.9

Thank you
Fabio

@droidmonkey
Copy link
Member

droidmonkey commented Aug 19, 2024

Make sure you are leaving both database tabs "open" when closing keepassxc and that the second database is not on network share that might be not ready after boot.

@Pelle83
Copy link

Pelle83 commented Aug 19, 2024

Yes, both database are open at KeePassXC closing.

No problem with database on network share since the only that opens at launch is the one on network...
The database on local disc remains closed.

I noticed the same behaviour on KeePassXC of 2 releases ago.
In the second to last was working perfectly and now, in 2.7.9 not working again.

@droidmonkey
Copy link
Member

Clear your %APPDATALOCAL%/KeePassXC/keepassxc.ini

@Pelle83
Copy link

Pelle83 commented Aug 19, 2024

Thank you!
Now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants