Open astrofrog opened 1 year ago
If the file is not world-readable on the sandbox system or this is somehow running in a mode that cannot read the configuration files, pywwt
might work around it by stripping the list of known config files before adding the type, e.g.
mimetypes.knownfiles = ['/etc/mime.types']
mimetypes.add_type('image/fits', '.fits')
mimetypes.add_type('image/fits', '.fts')
mimetypes.add_type('image/fits', '.fit')
but if permissions are that restricted, I am sceptical the next steps of starting the server would actually succeed.
If I enable sandbox mode in the entitlements file so that the .pkg installer is correctly validated, WWT no longer works:
I need to investigate whether there is a way around this, or whether we would need to remove glue-WWT in order to produce a functional .pkg installer.
For now I have removed sandbox mode and disabled the .pkg validation: https://github.com/glue-viz/glue-standalone-apps/commit/70c601b4a93d743c006618e7f0bef46d05556180