Add path and args to LoginItemSettings struct
This commit is contained in:
parent
29d0a30d63
commit
e2501a80e4
8 changed files with 67 additions and 51 deletions
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue