-
Notifications
You must be signed in to change notification settings - Fork 91
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
getAppPath and getAppExec return incorrectly on mac #73
Comments
I tried several ways of launching nwjs (double clicking, So in my case, where files are in the But this may be wrong in the following cases:
|
I'm also experiencing this issue on OSX 10.10.2. My app is being executed from the |
The |
Same Issue here on OSX 10.10.3 |
Same Issue here on OSX 10.10.5 |
I don't understand how this can be happening for some people but I and others use this in production with many users and haven't seen it :/. I'd love if someone could give a simple project to illustrate it. |
Actually, this could be vary based on the NW.js version. Could everyone please tell me what version you've encountered this problem with? |
I'm on mac 64 bit.
When I run
upd.getAppPath()
andupd.getAppExec()
they both return/Users
I don't understand this line of code:
https://github.com/edjafarov/node-webkit-updater/blob/master/app/updater.js#L113
Why the
../../..
? Why wouldn'tprocess.cwd()
be adequate?The
../../..
is what causes the path to walk up out of my project's directory and all the way down to/Users
.The text was updated successfully, but these errors were encountered: