()
| 112 | } |
| 113 | |
| 114 | async function pickBinaryPath() { |
| 115 | const nextPath = await window.clawDesktop?.pickFile?.([ |
| 116 | { name: 'Executable', extensions: ['exe', 'bin', 'cmd'] }, |
| 117 | { name: 'All Files', extensions: ['*'] }, |
| 118 | ]); |
| 119 | if (nextPath) { |
| 120 | setConfig(current => ({ |
| 121 | ...current, |
| 122 | clawBinaryPath: nextPath, |
| 123 | })); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | return ( |
| 128 | <div className="pointer-events-none fixed inset-0 z-40 flex items-center justify-center bg-[rgba(27,22,17,0.30)] p-6 backdrop-blur-[2px]"> |