Skip to content

feat(app): 添加自启动参数实现自启动重复启动静默退出#1782

Merged
HelloWRC merged 7 commits into
ClassIsland:masterfrom
xfy2412:feat/startup-option
May 5, 2026
Merged

feat(app): 添加自启动参数实现自启动重复启动静默退出#1782
HelloWRC merged 7 commits into
ClassIsland:masterfrom
xfy2412:feat/startup-option

Conversation

@xfy2412

@xfy2412 xfy2412 commented May 1, 2026

Copy link
Copy Markdown
Contributor

这个 Pull Request 做了什么?

添加了一个--autostartup参数用于标识系统自启动来源的程序启动,并且在启用自启动时创建的快捷方式中自动添加此参数,当携带此参数启动程序并检测到已有其他实例正在运行时直接退出,不弹出提示窗口

检查清单

  • 我已经在本地测试过这个 PR,确保欲实现的功能或修复的问题能正常工作。

@xfy2412 xfy2412 requested review from a team and HelloWRC as code owners May 1, 2026 14:23

@HelloWRC HelloWRC left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该简化启动快捷方式过期检验方式。可以考虑在 SettingsService 的迁移设置阶段中,应用从小于等于 2.0.3.2 的版本升级时,通过重新设置 PlatformServices.IsAutoStartEnabled 来更新自启动快捷方式。

@xfy2412 xfy2412 requested a review from HelloWRC May 2, 2026 11:46
@HelloWRC HelloWRC merged commit ab0751a into ClassIsland:master May 5, 2026
2 checks passed
@HelloWRC

HelloWRC commented May 5, 2026

Copy link
Copy Markdown
Member

感谢您的贡献🤝

昔涟 爱

@all-contributors please add @xfy2412 for code

@allcontributors

Copy link
Copy Markdown
Contributor

@HelloWRC

I've put up a pull request to add @xfy2412! 🎉

Koharu-Mizuki pushed a commit to Koharu-Mizuki/ClassIsland-RB that referenced this pull request May 24, 2026
* feat(app): 添加自启动参数实现自启动重复启动静默退出

* feat(app): 自动检查自启动快捷方式参数

* refactor: 重构自启动快捷方式检查方法

* refactor: 使用更简化的方式迁移自启动快捷方式
Koharu-Mizuki pushed a commit to Koharu-Mizuki/ClassIsland-RB that referenced this pull request Jun 19, 2026
* feat(app): 添加自启动参数实现自启动重复启动静默退出

* feat(app): 自动检查自启动快捷方式参数

* refactor: 重构自启动快捷方式检查方法

* refactor: 使用更简化的方式迁移自启动快捷方式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants