* 启动系统应用或系统设置(direct 类型指令)
(command: any, context?: ShortcutLaunchContext)
| 379 | * 启动系统应用或系统设置(direct 类型指令) |
| 380 | */ |
| 381 | private async launchDirectCommand(command: any, context?: ShortcutLaunchContext): Promise<void> { |
| 382 | console.log('[API] 通过全局快捷键启动系统应用:', command.name, command.path) |
| 383 | await appsAPI.launch({ |
| 384 | path: command.path, |
| 385 | type: 'direct', |
| 386 | name: command.name, |
| 387 | cmdType: command.cmdType || 'text', |
| 388 | param: this.buildShortcutLaunchParam(command.cmdType || 'text', context) |
| 389 | }) |
| 390 | } |
| 391 | |
| 392 | /** |
| 393 | * 处理全局快捷键触发(供 windowManager 调用) |
no test coverage detected