(target)
| 129 | ): LinuxDesktopProvider { |
| 130 | return { |
| 131 | async openTarget(target) { |
| 132 | if (target.includes('://') || target.startsWith('/')) { |
| 133 | await runCommand('xdg-open', [target]); |
| 134 | return; |
| 135 | } |
| 136 | |
| 137 | if (await whichCommand(target)) { |
| 138 | runCommand(target, [], { allowFailure: true }).catch((err) => { |
| 139 | emitDiagnostic({ |
| 140 | level: 'warn', |
| 141 | phase: 'linux_app_launch', |
| 142 | data: { app: target, error: String(err) }, |
| 143 | }); |
| 144 | }); |
| 145 | await sleep(500); |
| 146 | return; |
| 147 | } |
| 148 | |
| 149 | await runCommand('xdg-open', [target], { allowFailure: true }); |
| 150 | }, |
| 151 | async closeApp(app) { |
| 152 | if (await whichCommand('wmctrl')) { |
| 153 | await runCommand('wmctrl', ['-c', app], { allowFailure: true }); |
nothing calls this directly
no test coverage detected