Skip to content

Add support for $XDG_CONFIG_HOME for sandboxrc#14

Merged
benvan merged 2 commits into
benvan:masterfrom
erikw:fix/11
Nov 8, 2021
Merged

Add support for $XDG_CONFIG_HOME for sandboxrc#14
benvan merged 2 commits into
benvan:masterfrom
erikw:fix/11

Conversation

@erikw

@erikw erikw commented Nov 4, 2021

Copy link
Copy Markdown
Contributor

The location of the configuration file depends on the environment's configuration. The file is searched in the following order:

  1. $SANDBOXRC - if it is set. This has highest precedence. Thus you can set this to override to custom location.
  2. $XDG_CONFIG_HOME/sandboxd/sandboxrc - if the directory sandboxd/ exist. Note that $XDG_CONFIG_HOME defaults to $HOME/.config
  3. $HOME/.sandboxrc - fall back to old default location.

Fixes #11

See README for the search logic.

Fixes benvan#11
Comment thread sandboxd Outdated
@benvan benvan merged commit 91e0b6a into benvan:master Nov 8, 2021
@benvan

benvan commented Nov 8, 2021

Copy link
Copy Markdown
Owner

Thanks @erikw ! 👍

@erikw erikw deleted the fix/11 branch November 8, 2021 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support XDG Base Directory Specification

2 participants