nw-updater icon indicating copy to clipboard operation
nw-updater copied to clipboard

How to pass user-data-dir path?

Open ngrj opened this issue 8 years ago • 1 comments

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?

ngrj avatar Oct 17 '16 10:10 ngrj

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

adam-lynch avatar Nov 05 '16 22:11 adam-lynch