Specify an alternate keepassxc.ini when starting keepassxc. I don't see this option in the keepassrc command so I'm posting it as a feature request.
One may want to override the values of a subset of the settings in the default keepassxc.ini when starting keepassxc in certain situations. The command might look something like:
keepassxc [--ini-file <file_location>] [files | file_list]
There is no option to specify an alternate keepass.ini.
1.
2.
3.
4.
I'd like to have different intervals of inactivity before locking based on whether I am at home or at work or at a public location. If I could specify the keepassxc.ini as an option in the keepassxc command then I'd have alternate keepassxc.ini files and corresponding launchers to use in the respective situations.
KeePassXC - VERSION
Revision: REVISION
Libraries:
Operating system: OS
CPU architecture: ARCH
Kernel: KERNEL
Enabled extensions:
Not a bad idea, easy to implement as well.
Is this not what the --config is doing?
--config <config> path to a custom config file
Even better: and an include directive in ~\.config\keepassxc.ini like many softwares like git, fish, tmux, vim, or ssh.
Really handy for dotfiles repositories where we don't want to publish secret parts, or to manage specific cases by machines like here.
In my case, I would like to make a reference to a tracked ~\.config\keepassxc_common.ini in my not-tracked ~\.config\keepassxc.ini. In ~\.config\keepassxc_common.ini, I would have a common configuration through my devices (like [General] LastOpenedDatabases or [security] lockdatabaseidlesec), but in ~\.config\keepassxc.ini, I would have everything else (for instance, options related to GUI that changes all the time).
How about an environment variable to point to the location? I switch back and forth from various platforms (esp Mac and Linux) and I like to point to a consistent place. On Mac it's in ~/Library/Application\ Support/keepassxc/keepassxc.ini.
Almost all of my apps use environment variables to load cross-platform configs. Many (e.g., git, nvim) will use XDG_CONFIG_HOME on Mac if set, which is my preference.
In the meantime I'll use a symlink.
Closing this in favor of #2666
Most helpful comment
Even better: and an
includedirective in~\.config\keepassxc.inilike many softwares like git, fish, tmux, vim, or ssh.Really handy for dotfiles repositories where we don't want to publish secret parts, or to manage specific cases by machines like here.
In my case, I would like to make a reference to a tracked
~\.config\keepassxc_common.iniin my not-tracked~\.config\keepassxc.ini. In~\.config\keepassxc_common.ini, I would have a common configuration through my devices (like[General] LastOpenedDatabasesor[security] lockdatabaseidlesec), but in~\.config\keepassxc.ini, I would have everything else (for instance, options related to GUI that changes all the time).