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

Override the default keepassxc.ini when starting keepassxc. #1284

Closed
akwala opened this issue Dec 15, 2017 · 5 comments
Closed

Override the default keepassxc.ini when starting keepassxc. #1284

akwala opened this issue Dec 15, 2017 · 5 comments
Assignees

Comments

@akwala
Copy link

akwala commented Dec 15, 2017

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)

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
@droidmonkey
Copy link
Member

Not a bad idea, easy to implement as well.

@droidmonkey droidmonkey added this to the v2.3.0 milestone Dec 15, 2017
@droidmonkey droidmonkey self-assigned this Dec 15, 2017
@louib
Copy link
Member

louib commented Jan 17, 2018

Is this not what the --config is doing?

--config <config>               path to a custom config file

@phoerious phoerious modified the milestones: v2.3.0, v2.4.0 Jan 28, 2018
@nagromc
Copy link

nagromc commented Feb 15, 2018

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

@jcrben
Copy link

jcrben commented Apr 1, 2018

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.

@droidmonkey
Copy link
Member

Closing this in favor of #2666

@droidmonkey droidmonkey removed this from the v2.4.0 milestone Jan 31, 2019
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

6 participants