When to use this skill
ALWAYS use this skill when the user mentions:
- Enabling or disabling app autostart / 启用或关闭应用自启动
- Platform-specific autostart behavior / 平台自启动行为差异
- User-controlled autostart toggle / 用户可控自启动开关
Trigger phrases include:
- "autostart", "startup", "login items", "boot launch"
- "自启动", "开机启动", "登录项"
How to use this skill
- Decide autostart defaults and user controls
- Configure autostart plugin and permissions
- Handle platform differences for startup registration
- Provide rollback and verification steps
Outputs
- Autostart policy and toggle plan / 自启动策略与开关方案
- Rollback and verification checklist / 回滚与验证清单
Scope
- Boundary: Autostart configuration and control only
- Key points: Platform-specific startup behavior
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/autostart/
- https://v2.tauri.app/zh-cn/plugin/autostart/
Keywords
tauri autostart, startup, enable disable, platform
Common Gotchas (Gotchas)
- Version compatibility: Pay attention to compatibility between framework versions and dependency libraries; APIs may differ across versions
- Configuration file format: Configuration file format errors are the most common problem; it is recommended to use the editor's syntax check
- Environment variables: Ensure all necessary environment variables are set correctly, and do not hard-code sensitive information
- Dependency conflicts: When multiple versions coexist, watch out for dependency conflicts and use a lock file to pin versions
- Performance pitfalls: Pay attention to performance optimization in large-data scenarios, and avoid common problems such as N+1 queries
Usage workflow
Step 1: Environment preparation
Ensure the necessary dependencies and tools are installed in the development environment.
Step 2: Configuration initialization
Perform basic configuration according to project requirements.
Step 3: Using core features
Implement the core features according to the sample code.
Step 4: Test verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and launch
After completing development, proceed with deployment and monitoring.