spectron icon indicating copy to clipboard operation
spectron copied to clipboard

Spectron always creates new instance of partitions of electron app

Open rik12s opened this issue 3 years ago • 0 comments

Generally, when we use it manually there is a fixed path where dev team has assigned. For eg: /Application Support/<Projectname>/folder used for storing data behind the app.

image

But every time when app is launched using spectron like:

image

Data which should have been saved cannot be accessed as everytime new instance created some directory like:

/private/var/folders/4f/frtzmcsd5yv9zf9p2whcfgqc0000gr/T/.org.chromium.Chromium.XKQ5Vc/

So basically highlighted part is changed after every execution and creates the new same folder structure as i attached in image1.

Is there any way where i can configure to use the same partiton which were used when we manually make the app up?

Or anyway to get the information at runtime, so that i can copy few files to get the data reflected in my app immediately rather then processing everytime.

rik12s avatar Jun 16 '21 07:06 rik12s