Add path and args to LoginItemSettings struct

This commit is contained in:
Kevin Sawicki 2017-01-30 14:01:40 -08:00
parent 29d0a30d63
commit e2501a80e4
8 changed files with 67 additions and 51 deletions

View file

@ -362,10 +362,10 @@ describe('app module', function () {
'--process-start-args', `"--hidden"`
]
app.setLoginItemSettings({openAtLogin: true}, updateExe, processStartArgs)
app.setLoginItemSettings({openAtLogin: true, path: updateExe, args: processStartArgs})
assert(!app.getLoginItemSettings().openAtLogin)
assert(app.getLoginItemSettings(updateExe, processStartArgs))
assert.equal(app.getLoginItemSettings().openAtLogin, false)
assert.equal(app.getLoginItemSettings({path: updateExe, args: processStartArgs}).openAtLogin, true)
})
})