NWjs on macOS - get path to application directory rather than runtime directory

0 favourites
  • 2 posts
From the Asset Store
Move around the rectangular and travel as much as you can!
  • The game I'm making uses external resources that are placed in the same folder as the app's directory (or in the case of macOS, within the executable .app-file.

    However, for some reason NWjs.AppFolder returns the temporary runtime directory on macOS, whereas on Windows it returns the original file location. This means that on macOS specifically, NWjs.AppFolder is almost the same as NWjs.ProjectFilesFolder, which kind of defeats the purpose of getting the AppFolder value.

    Is there any way to figure out from where the project has been run on macOS, when exporting with NWjs?


    Just to add to this, I wouldn't consider getting the user's folder and checking their Applications-folder to be a good solution, even though it seems to be the only way to get anything from the .app package on macOS.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Bump.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)