Skip to content

Hangs when piping output #235

@kankaristo

Description

@kankaristo

Describe the bug
If I try to pipe output to cat (or some other command), cb hangs and I have to interrupt the process.

To Reproduce
For example, this gives the JSON output normally, but hangs after that:

cb history | cat

Same thing if I run it "directly" without the shell function:

flatpak run app.getclipboard.Clipboard history | cat

Also happens with status, not just history.

If I run the same commands without piping output, the app doesn't hang.

Expected behavior
No hanging.

Screenshots
N/A

Version
Happens in both:

  • Clipboard Project 0.9.1 (commit 969b894)
    • Flatpak version from the official install script (Flathub)
  • Clipboard Project 0.10.0 (commit d76481c, branch main)
    • From GitHub releases, installed manually

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions