LoginItemSettings
The current login-item settings for the application.
Login-item settings allow to configure autostart, so the application can be launched automatically after the user signs in. Applications typically use this for background agents, tray apps, sync clients, or apps that should be ready immediately after login without being launched manually.
Example
import { app } from '@mobrowser/api';
if (app.loginItemSettings.openAtLogin) {
console.log('Launch at login is enabled')
}
Properties
openAtLogin
readonly openAtLogin: boolean;
Whether the application is configured to launch at login.
args
readonly args?: string[];
Command-line arguments passed when the application starts automatically at login.
Windows only.