For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/lynxtron/api/@lynx-js/lynxtron/Interface.LoginItemSettings.md.
  • 简体中文
  • @lynx-js/lynxtron / LoginItemSettings

    LoginItemSettings

    属性

    executableWillLaunchAtLogin
    Windows

    executableWillLaunchAtLogin: boolean;

    true if app is set to open at login and its run key is not deactivated. This differs from openAtLogin as it ignores the args option, this property will be true if the given executable would be launched at login with any arguments.

    定义于

    apis/api/app.d.ts:140


    launchItems

    launchItems: LaunchItems[];

    定义于

    apis/api/app.d.ts:141


    openAsHidden
    macOS

    openAsHidden: boolean;

    true if the app is set to open as hidden at login. This does not work on macOS 13 and up.

    已被弃用

    定义于

    apis/api/app.d.ts:100


    openAtLogin

    openAtLogin: boolean;

    true if the app is set to open at login.

    定义于

    apis/api/app.d.ts:92


    restoreState
    macOS

    restoreState: boolean;

    true if the app was opened as a login item that should restore the state from the previous session. This indicates that the app should restore the windows that were open the last time the app was closed. This setting is not available on MAS builds or on macOS 13 and up.

    已被弃用

    定义于

    apis/api/app.d.ts:125


    status
    macOS

    status: string;

    can be one of not-registered, enabled, requires-approval, or not-found.

    定义于

    apis/api/app.d.ts:131


    wasOpenedAsHidden
    macOS

    wasOpenedAsHidden: boolean;

    true if the app was opened as a hidden login item. This indicates that the app should not open any windows at startup. This setting is not available on MAS builds or on macOS 13 and up.

    已被弃用

    定义于

    apis/api/app.d.ts:115


    wasOpenedAtLogin
    macOS

    wasOpenedAtLogin: boolean;

    true if the app was opened at login automatically.

    定义于

    apis/api/app.d.ts:106

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。