Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Conversation

ghost
Copy link

@ghost ghost commented Apr 28, 2019

This pull request is partnered with: asticode/go-astilectron#181

This will fix issue: asticode/go-astilectron#179

@@ -43,6 +44,9 @@ for (let i = idx; i < process.argv.length; i++) {
app.commandLine.appendSwitch(s, v);
}

// App Cache Path
app.setPath('userData', path.join(process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + 'Library/Preferences' : process.env.HOME + "/.local/share"), process.argv[4] || "astilectron"));
Copy link
Owner

Choose a reason for hiding this comment

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

I like using process.argv[4] to set the cache path.

However I'd rather have its value fully determined on GO side and simplifying here to

app.setPath('userData', process.argv[4]);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants