artemis-glitter icon indicating copy to clipboard operation
artemis-glitter copied to clipboard

Crash on Mac build when looking for vesselData.xml

Open IvanSanchez opened this issue 9 years ago • 2 comments

The packaged 0.3.1 crashes when trying to resolve file paths when looking for the vesselData.xml file:

TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:327:15)
    at Object.eval ([whatever]/artemis-glitter-0.3.1.app/Contents/Resources/app.nw/vesselData.js:13:24)

Check the values of process.execPath and module.uri when running on a Mac.

IvanSanchez avatar Jul 31 '14 23:07 IvanSanchez

It looks like the problem only exists when the node-webkit is run in a sandbox. Running from source works as expected.

IvanSanchez avatar Aug 13 '14 08:08 IvanSanchez

An alternative is using App.dataPath from node-webkit, instead of the dir glitter is run from.

IvanSanchez avatar Aug 13 '14 08:08 IvanSanchez