Commit 9e9ac8a
fix(clipboard): xclip detected but unusable without X11 display
Root cause: `which xclip` succeeds on the remote Termux server, but
`xclip -selection clipboard -o` fails with "Can't open display: (null)"
because there's no X11 display. The error was silently swallowed.
Fix: After detecting xclip exists, verify it actually works by running
a test command. If it fails with display errors, mark backend as NONE
instead of XCLIP. This allows fallback detection to work correctly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3586c4e commit 9e9ac8a
1 file changed
Lines changed: 30 additions & 3 deletions
Lines changed: 30 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
222 | 250 | | |
223 | 251 | | |
224 | 252 | | |
225 | | - | |
226 | | - | |
| 253 | + | |
227 | 254 | | |
228 | 255 | | |
229 | 256 | | |
| 257 | + | |
230 | 258 | | |
231 | | - | |
232 | 259 | | |
233 | 260 | | |
234 | 261 | | |
| |||
0 commit comments