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

[0.13.4-sdk] App.dataPath returns a path with a directory named default at the end #4696

Open
Dineshs91 opened this issue Apr 9, 2016 · 8 comments

Comments

@Dineshs91
Copy link

OS: Mac OS X (El captain)
nw.js version: 0.13.4-sdk

App.dataPath is returning ~/Library/Application Support/<name>/Default while the docs say it should return ~/Library/Application Support/<name>

The name of the package from package.json is devlog.

image

There is a directory named Default in that location and has files related to preferences, cookies etc.

@rogerwang rogerwang added the nw13 label Apr 11, 2016
@artch
Copy link

artch commented Apr 11, 2016

Confirming this on Windows 10 x64 nw.js 0.13.2-sdk. nw.App.dataPath returns %LOCALAPPDATA%/<name>/User Data/Default. Should be %LOCALAPPDATA%/<name>.

@rribou
Copy link

rribou commented Apr 12, 2016

Same thing here on Ubuntu 15.04 x64 with nw.js 0.13.4-sdk.

@Dineshs91
Copy link
Author

Same behaviour in nw@0.14.3-sdk

@RohitSharma27
Copy link

RohitSharma27 commented May 1, 2016

same behavior in nw0.14.2-sdk. I have noticed one more thing on Mac. In nw0.12.3 folders like 'Local Storage', 'GPU Cache' were created in 'library/Application Support/[app name]/' but, from nw0.13 onwards they are getting created in 'library/Application Support/[app name]/Default/'.
So this may be the reason of why App.dataPath is returning the new path. It's just an observation. I haven't thoroughly looked into it.

@artch
Copy link

artch commented May 11, 2016

0.14.4-sdk LTS - still an issue on Windows 10 x64.

@gpetrov
Copy link

gpetrov commented Jun 9, 2016

why is this changed indeed? We have User Data/Default at the end, like:

on Windows 10

C:\Users[username]\AppData\Local[app name]\User Data\Default

while it use to be:

C:\Users[username]\AppData\Local[app name]\

Now we have to run some manual migration ...

@vzamanillo
Copy link

As chromium does, stores all the application data in the default profile folder.

@rogerwang rogerwang self-assigned this Jun 21, 2016
vzamanillo referenced this issue in popcorn-official/popcorn-desktop Oct 24, 2016
yea a reversion of a reversion.
This reverts commit 34cad51.
@Christywl
Copy link
Contributor

App.dataPath returns a path with a directory named Default at the end on nwjs 0.21.6.

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

No branches or pull requests

8 participants