realm-studio icon indicating copy to clipboard operation
realm-studio copied to clipboard

Create structure for tmp dir

Open mbalex99 opened this issue 8 years ago • 3 comments

The Electron app needs a place to store things

  1. A tmp/user/${userId}/${rosId} dir for synced realms
  2. A tmp/user/${userId}/settings to save things like last opened realm or schema etc...

Think of number 2 being more of a User Default

mbalex99 avatar Aug 03 '17 18:08 mbalex99

@mbalex99. Do you have thoughts on what number 2 could be? A local Realm or perhaps a simple .json file or a directory of .jsons? It seems Electron has a good API to get the relevant file paths based on the OS: https://github.com/electron/electron/blob/master/docs/api/app.md#appgetpathname

kraenhansen avatar Aug 15 '17 10:08 kraenhansen

Yeah I think number 2 can just be another realm. Either that or it can just be a localStorage json

mbalex99 avatar Aug 15 '17 14:08 mbalex99

This line could be changed to have the realms stored in the "temp" directory: https://github.com/realm/realm-studio/blob/master/src/renderer.tsx#L7-L8

kraenhansen avatar Sep 11 '17 11:09 kraenhansen