-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Does not open last used database automatically #4911
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
Comments
I'm confused by the problem. Do you even have the database open in keepassxc? We don't open a database file when you auto-type, you need to do that first. It doesn't have to be unlocked, but it does have to be "open". |
Sorry, I did not mean opened and unlocked, but selected with its keyfile, so that you only have to type the passphrase. |
Yes, I have. But it seems, that it sometimes does not know, what the last db was. I have this issue on multiple machines. |
I am going to need screenshots or a demo video to understand what your problem is, sorry. |
Ok, I attached a screencast. I am trying to log into Github via autotype, but nothing happens, because the last used database was not remembered after a reboot. I have to open the KeepassXC window and select my database from the list of the last opened (I have only one database).This does not happen every time, but very often. The expected behabiour is, that my last used database it opened every time, and I am only prompted to unlock it. |
When you close keepassxc do not close the database (don't press Ctrl+W). That will require you to open it again on launching keepassxc. |
I do not close the db. The issue is mostly after reboots or resumes. |
Is your db hosted on a network shares that might not be connected or available? |
No, the db file is always present in the locsl filesystem. |
I was facing the same problem. In the settings GUI the option "Load previously used database" was set but in the I changed the value to UPDATE: That only worked until I cleaned up |
I have the same problem. After a reboot keepass forgets what my last database was. As long as I don't reboot it works fine. I have the GUI Settings enabled and OpenPreviousDatabasesOnStartup is also set to true. EDIT: OK I found the problem. The last database is now saved in |
This is a common theme and unfortunate finding |
I have the same issue. Despite "Remember previously used databases", "Load previously open databases on startup" and "Remember database key files and security dongles" being checked in "Application Settings > Basic Settings", whenever I quit the application to reboot the system, I have to provide explicitly the name of both DB and key when I open KeePassXC. Also, the settings are correctly saved in the keepassxc.ini file I've never had the problem before v2.6.0, and I've been using KeePassXC for years. It does not happen when I just quit the application (Cmd+Q). Both files (DB & key) are located on a USB drive, but they are both available when I start KeePassXC. |
Sounds like a completely different issue. Please open a new ticket for that |
Same for me, |
Technically we are not doing anything wrong, mounting |
Yes you are right. This is not a problem of keepassxc. I have other applications that save configs in For example I use this for keepassxc: mkdir -p ~/.cache/keepassxc && ln -s ~/keepassxc.ini ~/.cache/keepassxc/keepassxc.ini |
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html Imo the "last opened" list is not non-essential data and should go into XDG_DATA_HOME instead. Also I've had this set up for multiple years already and have never seen any issues with other applications. edit: after some searching around I believe pre-2.8.0 the file location was The source change seems to be 596d2cf#diff-461928dbf0b7b4c50bab629bfe990c75L141-L170 |
Yes the change is deliberate and the directory choice is correct |
@droidmonkey I don't really understand why the change was done though. Were there problems with ~/.config/keepassxc ? |
We store settings in both places. Ephemeral, system specific settings are stored in the "local" storage, which on Linux corresponds to the .cache directory. All other settings remain in .config. This allows users to sync their settings across devices, or add to their dot-file git repo without exposing somewhat personal data or information that changes often. |
Okay. I do understand that saving a "recently used" list in ~/.config is "wrong". I don't understand why ~/.cache instead of ~/.local/share was chosen though as the latter would make much more sense (to me at least - it's definitely not "non-essential data" in my eyes). Line 449 in 5c2a1a4
should make everyone happy? |
Ping @phoerious |
#5313 better captures the issue, workaround, and discussion. |
Hi!
I often have the issue, that when using the global autotype shortcut, nothing happens, because KeepassXC does not open the last used database. I have to open the main window and select the last (and only) database from the recents list. Then it works for a while. Maybe there should be an option to set the default database.
The text was updated successfully, but these errors were encountered: