nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

nwjs application run in differently each time

Open mpsbhat opened this issue 10 years ago • 1 comments

I have created a nwjs application and I have created the distribution package using nw-builder as sudo nwbuild -p linux -v 0.12.3 -o ~/Documents/output/ /home/path/to/application/files/ and it was created successfully. I used diskdb for data storage by following this tutorial series.

The problem is, when i save some records and close the application and next time when i open the application, previously saved data is unavailable..! When I made toolbar: true in my package.json file i observed that each time the chromium webkit open as a temporary folder with temp link as, file:///tmp/.org.chromium.Chromium.fK2Img/login.html, file:///tmp/.org.chromium.Chromium.dDiSrR/login.htmletc. How can I solve the same?

mpsbhat avatar Feb 15 '16 06:02 mpsbhat

You should save the status of application to user data dir, or use a different packaging mechanism (non-zip). And please submit questions to mailing list: https://groups.google.com/forum/#!forum/nwjs-general

rogerwang avatar Feb 15 '16 07:02 rogerwang