From e5fe81ac158c1288467c5021b4b87cb7ffa554ee Mon Sep 17 00:00:00 2001 From: diegozhu Date: Mon, 27 Apr 2020 14:21:28 +0800 Subject: [PATCH] docs: update description on second-instance event. (#23119) * Update app.md more descriptions on second-instance event. * Update docs/api/app.md Co-Authored-By: loc Co-authored-by: Cheng Zhao Co-authored-by: loc --- docs/api/app.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/app.md b/docs/api/app.md index 5ab4b7f9e64d..83510f318ef7 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -414,6 +414,8 @@ and `workingDirectory` is its current working directory. Usually applications respond to this by making their primary window focused and non-minimized. +**Note:** If the second instance is started by a different user than the first, the `argv` array will not include the arguments. + This event is guaranteed to be emitted after the `ready` event of `app` gets emitted.