Skip to content

Panic when copying on a system not running X #1707

Open
@ellie

Description

@ellie

See more details:

https://forum.atuin.sh/t/error-when-copying-to-clipboard-without-x-server/157

Replication steps

  • Run on a machine without X (eg, SSH into a server)
  • ctrl-y on a history item to yank to clipboard
  • observe panic
thread 'main' panicked at atuin/src/command/client/search/interactive.rs:1013:36:
called `Result::unwrap()` on an `Err` value: XcbConnect(DisplayParsingError)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected behaviour

Atuin should do nothing in an environment without a clipboard

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions