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

explain what folder are used to load the configuration #6

Open
gabrielstuff opened this issue Jan 19, 2018 · 0 comments
Open

explain what folder are used to load the configuration #6

gabrielstuff opened this issue Jan 19, 2018 · 0 comments

Comments

@gabrielstuff
Copy link
Member

Currently we look here

  process.cwd(),
  require.main.filename,
  path.dirname(process.argv[1]),
  path.resolve(path.dirname(require.main.filename), '../../../'), // inside electron
  path.resolve(path.dirname(require.main.filename), '../../../app.asar.unpacked/') 

We could also check for:

a local .${appname}rc or the first found looking in ./ ../ ../../ ../../../ etc.
$HOME/.${appname}rc
$HOME/.${appname}/config
$HOME/.config/${appname}
$HOME/.config/${appname}/config
/etc/${appname}rc
/etc/${appname}/config

Or the /etc/conf.d/

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

No branches or pull requests

1 participant