-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Local config data is cleared when ~/.cache mounted on tempfs #5313
Comments
You are mounting ~/.cache to a tmpfs? |
Well that explains it then. Yes I do. Seems like an odd place to store settings. Or at least a setting. I have my workaround so if you're of the belief that .cache is the place to store settings (it isn't) please feel free to close :) Edited to add: Cool program. Thanks. |
You are not alone, there are a couple others who have mounted it to tmpfs. But really you are totally defeating the purpose of cache which is to prevent recreation of compiled/processed data all the time. You are also unnecessarily taking up space in your RAM (not a big concern these days). Either way, its arguable that its the right/wrong place to store this but XDG defines it as:
There is no "local" config storage option in Linux. |
My own opinion is that it is a setting. Not data. But then everything is data to one degree or another. My cache isn't recreated all the time, just at reboots. It's a trade off I'm happy to make and with 32gb of ram and a 8 core recent CPU the impact is almost non existent. I think ~/.config/keepassxc/keepassxc.ini is where it should be stored. I guess it must have resided there prior to the update ? I've just had a look through my .cache and nothing else seems to be storing settings like last used and windows states etc. However if you disagree I fully respect that. I must have been wrong about keepassXC forgetting when I'd only restarted X. It's not something I've been focusing on. Just a tiny annoyance. A bit of effort but maybe you could check if ~/.cache is mounted on a tmpfs and if so warn the user that remembering databases is not going to work. |
Now I know what's going on, a better workaround for me and others affected possibly ? at the top of my .xinitrc. Now I keep my window states as well. :) |
We should just store the local config in ~/.local/share/keepassxc |
* Fix #5313, allow specifying local config path using environment variable and command line flag * Add command line flag `--localconfig <path>` to specify a file path to use for the local configuration settings. * Add environment variable support to set config files paths: `KPXC_CONFIG` and `KPXC_CONFIG_LOCAL` to override default locations. * Reorder startup sequence to load specified config files earlier to allow for theme settings and other early options to be picked up. * Removed old command line option `--pw`, no longer used. * Attempt a fix of application not closing when last window is gone. Only set `QApplication::setQuitOnLastWindowClosed(true)` when tray icon is enabled instead of always.
* Fix #5313, allow specifying local config path using environment variable and command line flag * Add command line flag `--localconfig <path>` to specify a file path to use for the local configuration settings. * Add environment variable support to set config files paths: `KPXC_CONFIG` and `KPXC_CONFIG_LOCAL` to override default locations. * Reorder startup sequence to load specified config files earlier to allow for theme settings and other early options to be picked up. * Removed old command line option `--pw`, no longer used. * Attempt a fix of application not closing when last window is gone. Only set `QApplication::setQuitOnLastWindowClosed(true)` when tray icon is enabled instead of always.
On Fedora 35 /tmp/ is a tmpfs. The following procedure works for me on Fedora 35 with KDE, for replacing: You can copy paste after replacing all the occurrencies of: This procedure is based on the suggestions made by: Thank you so much to everybody who contributes to this amazing software 👍 As the user
As the user root, run the following commands:
|
With keepassxc 2.6.0 and above you can just add an environment variable or command line flag to point to a different folder for the local config. https://keepassxc.org/docs/KeePassXC_UserGuide.html#_command_line_options --localconfig or KPXC_CONFIG_LOCAL |
Hi @droidmonkey. |
Oops forgot to put that in the man page, but it is in the user guide 😇 |
Overview
Since the big update (new gui) keepassXC very very rarely remembers the last database no matter whether I shutdown the desktop cleanly or with a three or four finger salute (KDE only ?). Before the update it remembered fine. It is enabled in the options. Remember and open on startup
As I only ever use one database my workaround has been , just now, to change it's user .desktop file to explicitly open the database
Steps to Reproduce
Expected Behavior
Ask me for the password for the last used database instead of having to navigate to it's location almost every time.
Actual Behavior
Have to navigate to it's location almost every time.
Context
It occasionally works but I fail to see a pattern. I've tried making sure KeepassXC is closed cleanly but that doesn't make a difference AFAICT.
KeePassXC - Version 2.6.1
Revision: 9a35bba
Qt 5.15.0
Debugging mode is disabled.
Operating system: Gentoo/Linux
CPU architecture: x86_64
Kernel: linux 5.8.3-gentoo-x86_64
Enabled extensions:
Cryptographic libraries:
libgcrypt 1.8.6
Operating System: Linux/
Desktop Env: KDE
Windowing System: X11
The text was updated successfully, but these errors were encountered: