Skip to content

Allow calling setPath('userData', path) before app.start() #202

Closed
@DutchKevv

Description

@DutchKevv

Maybe its impossible cause of the structure off Electron,

But when I run tests, I want to use a 'temp' userData folder, instead of the 'official' one, so that data from tests does not mix with installed application data.

Is this possible?

Right now its only possible to call app.electron.remote.app.setPath('userData', path); after app.start, cause otherwise app.electron is not defined, and thus to late.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions