@@ -611,30 +611,33 @@ Returns the current value displayed in the counter badge.
611
611
612
612
Returns whether current desktop environment is Unity launcher.
613
613
614
- ### ` app.getLoginItemSettings() ` _ macOS_
614
+ ### ` app.getLoginItemSettings() ` _ macOS_ _ Windows _
615
615
616
616
Return an Object with the login item settings of the app.
617
617
618
618
* ` openAtLogin ` Boolean - ` true ` if the app is set to open at login.
619
619
* ` openAsHidden ` Boolean - ` true ` if the app is set to open as hidden at login.
620
+ This setting is only supported on macOS.
620
621
* ` wasOpenedAtLogin ` Boolean - ` true ` if the app was opened at login
621
- automatically.
622
+ automatically. This setting is only supported on macOS.
622
623
* ` wasOpenedAsHidden ` Boolean - ` true ` if the app was opened as a hidden login
623
624
item. This indicates that the app should not open any windows at startup.
625
+ This setting is only supported on macOS.
624
626
* ` restoreState ` Boolean - ` true ` if the app was opened as a login item that
625
627
should restore the state from the previous session. This indicates that the
626
628
app should restore the windows that were open the last time the app was
627
- closed.
629
+ closed. This setting is only supported on macOS.
628
630
629
- ### ` app.setLoginItemSettings(settings) ` _ macOS_
631
+ ### ` app.setLoginItemSettings(settings) ` _ macOS_ _ Windows _
630
632
631
633
* ` settings ` Object
632
634
* ` openAtLogin ` Boolean - ` true ` to open the app at login, ` false ` to remove
633
635
the app as a login item. Defaults to ` false ` .
634
636
* ` openAsHidden ` Boolean - ` true ` to open the app as hidden. Defaults to
635
637
` false ` . The user can edit this setting from the System Preferences so
636
638
` app.getLoginItemStatus().wasOpenedAsHidden ` should be checked when the app
637
- is opened to know the current value.
639
+ is opened to know the current value. This setting is only supported on
640
+ macOS.
638
641
639
642
Set the app's login item settings.
640
643
0 commit comments