Error when copying to clipboard without X server

Hello, PR 1249 introduced Ctrl-Y (copy to clipboard) feature in Sep 2023. Of course, I had to try it … in a X-server-less environment. That is, there’s no clipboard to use since I ssh to my server without any X11 forward.

As can be expected, it “crashed” with:

 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

I mean, fair enough as this is an edge case and not a bug – but maybe the error message can be nicer, like “Unable to copy to clipboard because …”?

Just a thought.

Also, I do not known if this is the right place to report this – should I have raised a GitHub issue myself or do you prefer to do it as you see fit yourselves?

Thanks!

1 Like

Hey! Thanks for reporting this!

Generally we prefer people come here first, unless it’s obviously a bug. The reasoning there is that there’s a bunch of moving parts (eg self hosting), and I prefer to determine if it’s a bug or a usage issue before opening issues - I prefer those to be actionable.

A panic is definitely an issue though!

I’ve opened a bug here:

1 Like

Hi @ellie, thanks for raising the issue.

Generally we prefer people come here first

Yeah, I do not have problem with that at all.

1 Like