question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gpetrovcommented, 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 …

1reaction
rriboucommented, Apr 12, 2016

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

where to put nw.js temp data -- `nw.App.dataPath + '/Cache'`?
App.dataPath returns the path in the user's profile folder, including the Default profile (from Chromium's point of view) folder.
Read more >
Application.dataPath is not working in build - Unity Answers
In the Editor, it returns the path for the Assets folder In a built executable it returns the path to the built project's...
Read more >
INFO: Ability to specify location path for data file with E ...
Click OK to close and save. The image below shows an example of the E-DataPath environment variables set in a Desktop folder named...
Read more >
Scripting API: Application.dataPath - Unity - Manual
Contains the path to the game data folder on the target device (Read Only). The value depends on which platform you are running...
Read more >
System Functions - Alpha Anywhere Documentation
GET_PATH () Returns the path of the currently open .ADB database file. It is a useful function when you want to make an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found