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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add option to set user data path #1730

Merged
merged 2 commits into from Sep 14, 2018
Merged

feat: Add option to set user data path #1730

merged 2 commits into from Sep 14, 2018

Conversation

gregor
Copy link
Contributor

@gregor gregor commented Sep 14, 2018

#1078 related to #1075 has been hanging around way too long. Sorry about that 馃檲

@ConorIA Since our codebase has evolved and your PR has merge conflicts I simply created a new one. I opted for a naming similar to the start param of Google Chrome (https://chromium.googlesource.com/chromium/src/+/HEAD/docs/user_data_dir.md).

Unless there are strong opinions agains this I would want to merged this and thereby fix and address #1075 and #1078.

const EXEC_PATH = process.env.APPIMAGE || process.execPath;
const USER_PATH = path.join(EXEC_PATH, '..', 'Data');
const USER_PATH = path.join(EXEC_PATH, '..', directory);
Copy link
Contributor

@atomrc atomrc Sep 14, 2018

Choose a reason for hiding this comment

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

I think it is not going to work if an absolute path is given by the user.
It's going to generate currentDir/../<start of absolute path>

@gregor gregor merged commit 95f5102 into master Sep 14, 2018
@gregor gregor deleted the feat/user_data_dir branch September 14, 2018 14:21
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

2 participants