Commit c4d61d2
feat(ui,clipboard): consolidate UI/UX and implement HTML/Image sync (#8)
* feat(ui,clipboard): consolidate UI/UX and implement HTML/Image sync
- Replaced fragmented Zenity dialogs with professional Python/GTK3 forms.
- Decluttered Tray menu with new 'Advanced' submenu and improved status labels.
- Implemented full HTML and Image clipboard synchronization via MIME-aware backends.
- Updated README.md with high-fidelity setup instructions and feature details.
- Refactored core network and runtime layers to support structured clipboard payloads.
* fix(net,protocol): zero-magic handshake, Heartbeat_v2, label constants, trailing whitespace
- Accept clipboard handshake packets with zero magic (PowerToys MWB compat)
- Add desId param to exchangeClipboardHandshake; use kBroadcastMachineId fallback
- Force magic=0 on RequestRemoteClipboard secondary socket
- Add Heartbeat_v2 (type 80) to PackageType and PackageTypeName
- Rename clipboard socket labels: "text"→"TXT", "image"→"IMG"
- Add debug logging throughout handshake flow
- Strip trailing whitespace (CI static check)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(clipboard): fix image sync protocol types and trimming
- Corrected PackageType values for clipboard (9->69, etc) to match MWB protocol.
- Implemented trailing null-byte trimming for received image payloads.
- Increased inline and socket clipboard max sizes to 16MB.
- Use zero magic for clipboard socket handshake per observed PowerToys behavior.
- Switched wl-clipboard-klipper to wl-paste --watch for reliable detection.
* test(clipboard): use magic=0 in PushClipboardText to match server expectation
Clipboard socket incoming handler uses magic=0 (PowerToys compat). Test was
still using crypto.Get24BitHash() for the response packet, causing
receivePacketOnSocket to reject it and crash the test with an unhandled
std::runtime_error.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(tray,net): stabilize UI, fix reconnect loop, and revamp README
* fix(ci): remove trailing whitespace and cleanup debug logs
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1f2bbdf commit c4d61d2
15 files changed
Lines changed: 946 additions & 1031 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
321 | 322 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
326 | 327 | | |
327 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
328 | 338 | | |
329 | 339 | | |
330 | 340 | | |
| |||
385 | 395 | | |
386 | 396 | | |
387 | 397 | | |
388 | | - | |
| 398 | + | |
389 | 399 | | |
390 | 400 | | |
391 | 401 | | |
392 | | - | |
393 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
394 | 407 | | |
395 | 408 | | |
396 | 409 | | |
397 | 410 | | |
398 | 411 | | |
399 | | - | |
400 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
401 | 418 | | |
402 | 419 | | |
403 | 420 | | |
404 | | - | |
| 421 | + | |
405 | 422 | | |
406 | 423 | | |
407 | 424 | | |
| |||
415 | 432 | | |
416 | 433 | | |
417 | 434 | | |
418 | | - | |
419 | | - | |
420 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
421 | 438 | | |
422 | 439 | | |
423 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
0 commit comments