Skip to content

Linux image-clipboard detection gives up on xclip failure and never tries wl-paste #28

Description

@offbyonebit

Severity: medium
Type: bug
Location: clipsync/clipboard.py_read_image_from_system_clipboard() (~line 350)

Problem: The first probe loop tries xclip -t TARGETS then wl-paste --list-types. If xclip is installed but fails (e.g., on a Wayland session without Xwayland), the code returns None immediately instead of continuing to the wl-paste fallback, breaking image detection on hybrid Linux setups.

Suggested fix: Change the return None after a non-zero xclip result to continue, so the loop falls back to wl-paste just like the second image-fetch loop already does.


Filed from a full-source audit of the repo (2026-07-29). Independently confirmed against the source before filing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditFound in the 2026-07 code auditbugSomething isn't workingseverity:mediumDegraded behaviour or edge case

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions