Keepassxc: Override the default keepassxc.ini when starting keepassxc.

Created on 15 Dec 2017  Â·  5Comments  Â·  Source: keepassxreboot/keepassxc


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.

Expected Behavior



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]

Current Behavior



There is no option to specify an alternate keepass.ini.

Possible Solution


Steps to Reproduce (for bugs)



1.
2.
3.
4.

Context



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.

Debug Info


KeePassXC - VERSION
Revision: REVISION

Libraries:

  • LIBS

Operating system: OS
CPU architecture: ARCH
Kernel: KERNEL

Enabled extensions:

  • EXTENSIONS
new feature

Most helpful comment

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).

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings