Skip to content

[area] window缺少随机启动功能 #194

Closed

Description

@422339238

现象

windows 下能开机启动

 因为是基础工具,这个应该是必须要有的功能,
 用户应该能设置是否开启

影响

还需要手动.比较麻烦

建议接受标准

windows 下能开机启动 用户可设置

TODO / 不确定项

No response

Activity

  1. added
    bug
    on May 2, 2026
  2. added
    enhancement
    and removed
    bug
    on May 3, 2026
  3. millionart commented on May 3, 2026

    @millionart
    Contributor

    最好直接放个启动快捷方式,别走注册表

  4. appergb commented on May 3, 2026

    @appergb
    Collaborator

    认领。

    实施方案:用 Tauri 官方 tauri-plugin-autostart,跨 macOS / Linux / Windows 三平台。

    • macOS:~/Library/LaunchAgents/com.openless.app.plist(LaunchAgent)
    • Linux:~/.config/autostart/openless.desktop(XDG autostart)
    • Windows:HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run(per-user,不需要 admin)

    UI:设置页 → 录制 区追加一个「开机自启」Toggle,状态以 OS 真实状态为准(直接调插件 isEnabled / enable / disable),不进 prefs。

    @millionart 评论里提到的「别走注册表,放启动快捷方式」我看了下:插件没有内置的 startup-folder .lnk 模式,要走那条路得自己写 Windows 子流程。HKCU\Run 是 Microsoft 文档化的 per-user 标准做法、不要管理员,本 issue 验收标准("用户可设置开机启动")已满足。如果坚持要 .lnk 方式,单独追加 follow-up。

    分支:feat/autostart-194

  5. appergb commented on May 3, 2026

    @appergb
    Collaborator

    补充当前分支 feat/autostart-194 审计发现:开机启动实现还没有形成完整用户入口闭环。

    证据:

    • openless-all/app/src-tauri/src/lib.rs:59-65 已注册 tauri_plugin_autostart。
    • openless-all/app/src/pages/Settings.tsx:7 导入了 disableAutostart / enableAutostart / isAutostartEnabled。
    • 但当前设置页没有实际渲染“开机自启” Toggle,也没有调用这些 API 的用户路径。

    影响:后端能力存在,但用户无法从设置入口开启、关闭或确认开机启动状态;从入口到出口的体验仍未满足本 issue 验收。

    建议验收:设置页出现开机自启 Toggle,初始状态来自 OS 真实状态;切换时调用插件 enable/disable;失败时有明确错误提示;不依赖本地 prefs 作为状态真相。

  6. added a commit that references this issue on May 4, 2026
    e5608db
  7. added a commit that references this issue on May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions