nw-updater
nw-updater copied to clipboard
How to pass user-data-dir path?
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?
You could store something in localStorage just before updating, then look for it on startup and remove it. How about that?