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

How to pass user-data-dir path? #114

Open
ngrj opened this issue Oct 17, 2016 · 1 comment
Open

How to pass user-data-dir path? #114

ngrj opened this issue Oct 17, 2016 · 1 comment

Comments

@ngrj
Copy link

ngrj commented Oct 17, 2016

Hello,
I've used following chromium args in my app
"chromium-args": "--user-data-dir='./datadir/' "
Whenever a user opens my app, it checks if datadir exists in current folder or else it create's one.
so what happens right now is once the app latest version is downloaded to tmp, it opens the app and since datadir is not situated in the current dir , it will create new datadir folder inside tmp/App.
I would like to avoid this scenario. If there is a way to tell it to use datadir from original app folder.
Probably passing it to runInstaller?
Any help?

@adam-lynch
Copy link
Collaborator

You could store something in localStorage just before updating, then look for it on startup and remove it. How about that?

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

2 participants