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

fix(cli): Don't use electron to get USER_DATA_DIR in CLI #2433

Merged
merged 1 commit into from
Aug 7, 2018

Conversation

jhermsmeier
Copy link
Contributor

A previous change erroneously relied solely on electron to determine
the user's data directory, which of course, isn't available when running
in the CLI. So this adds a fallback to the same mechanic for CLI should
this code not be loaded in Electron.

Change-type: patch
Signed-off-by: Jonas Hermsmeier jhermsmeier@gmail.com

@thundron
Copy link
Contributor

thundron commented Aug 7, 2018

retest

@mikesimos
Copy link
Contributor

@resin-ci retest

A previous change erronously relied solely on `electron` to determine
the user's data directory, which of course, isn't available when
running in the CLI. So this adds a fallback to the same mechanic
for CLI should this code not be loaded in Electron.

Change-type: patch
Signed-off-by: Jonas Hermsmeier <jhermsmeier@gmail.com>
Copy link
Contributor

@thundron thundron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@thundron thundron merged commit 93906b9 into master Aug 7, 2018
@ghost ghost removed the in progress label Aug 7, 2018
@jhermsmeier jhermsmeier deleted the fix-cli-settings branch August 27, 2018 17:08
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.

None yet

3 participants