CARTAvis / carta

To CARTA users, this repo holds the CARTA release packages. Please use this repo to log bugs and feature requests. These will be triaged by the development team and prioritised as necessary in the development cycles.
19 stars 0 forks source link

MacOS electron build needs to use preferences.json file #106

Closed veggiesaurus closed 2 years ago

veggiesaurus commented 2 years ago

The MacOS electron build currently reverts to localStorage, rather than storing the preferences and layouts in $HOME/.carta/config/preferences.json.

We need to ensure the frontend is using the appropriate REST endpoint (I think it would be http://localhost:<port>/api). This path is currently determined by the contents of the GET request to /config from the frontend, so perhaps we can just manually edit the config file in the built version to include the following:

{"apiAddress":"/api"}