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

OS X user other than installing user can't open app #210

Closed
NilsEnevoldsen opened this issue Feb 5, 2016 · 2 comments
Closed

OS X user other than installing user can't open app #210

NilsEnevoldsen opened this issue Feb 5, 2016 · 2 comments

Comments

@NilsEnevoldsen
Copy link
Contributor

Replication:

  1. Install app as user Alice
  2. Try to run app as user Bob
  3. Receive error about PowerPC applications not being supported

The issue appears to be permissions on the executable files:

  • /Applications/Livestreamer Twitch GUI.app/Contents/MacOS/nwjs
  • /Applications/Livestreamer Twitch GUI.app/Contents/Frameworks/nwjs Framework.framework/nwjs Framework
  • /Applications/Livestreamer Twitch GUI.app/Contents/Frameworks/nwjs Helper.app/Contents/MacOS/nwjs Helper
  • /Applications/Livestreamer Twitch GUI.app/Contents/Frameworks/nwjs Helper EH.app/Contents/MacOS/nwjs Helper EH
  • /Applications/Livestreamer Twitch GUI.app/Contents/Frameworks/nwjs Helper NP.app/Contents/MacOS/nwjs Helper NP

Running sudo chmod [file] a+rx on these files fixes the issue.

@bastimeyer
Copy link
Member

700 are the default file permissions of all executables in the .app folder.

These are set by the NW.js archive which is being downloaded by nw-builder. The builder doesn't change any file permissions. That was the reason why the first OSX builds of the current release were corrupted (#200)...

I don't want to manipulate the OSX build procedure here...
Please report this issue over there at the nw-builder repo or maybe even the NW.js repo.

Thanks!

@bastimeyer
Copy link
Member

I decided to include a fix for this issue here, since the nw-builder maintainers seem to be inactive again and are not interested in a fix.

The new NW.js builds on Linux also have invalid file permissions set (only user permissions). The solution for this mess is simply running chmod -R g=u,o=u,g-w,o-w /path/to/app, which copies user permissions to group and other and removes write flags on those.

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

2 participants