From 3c2539eced9cda79dff119495914f21fda7d1953 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 30 Jan 2017 15:22:44 -0800 Subject: [PATCH] Update example to use new option keys --- docs/api/app.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/api/app.md b/docs/api/app.md index f788a13cb62f..34c71104cc2c 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -813,10 +813,14 @@ const appFolder = path.dirname(process.execPath) const updateExe = path.resolve(appFolder, '..', 'Update.exe') const exeName = path.basename(process.execPath) -app.setLoginItemSettings({openAtLogin: true}, updateExe, [ - '--processStart', `"${exeName}"`, - '--process-start-args', `"--hidden"` -]) +app.setLoginItemSettings({ + openAtLogin: true, + path: updateExe, + args: [ + '--processStart', `"${exeName}"`, + '--process-start-args', `"--hidden"` + ] +}) ``` **Note:** This API has no effect on [MAS builds][mas-builds].