Interface ElectronMainCommandOptions

Options passed to the main/default command handler.

interface ElectronMainCommandOptions {
    cwd: string;
    file?: string;
    secondInstance: boolean;
}

Properties

cwd: string
file?: string

By default, the first positional argument. Should be either a relative or absolute file-system path pointing to a file or a folder.

secondInstance: boolean

If the app is launched for the first time, secondInstance is false. If the app is already running but user relaunches it, secondInstance is true.