Skip to content

Can't get clipboard on Ubuntu without default wm #3

Description

@kodesettings

When trying to paste from clipboard, getting the following backtrace.

This only happens currently on Ubuntu with any window manager when Gnome is not loaded. Please note red is having the same issue, but without backtrace output.

kernel: 6.14.0-27-generic
os: Ubuntu 24.04.2 LTS

Error: cant get clipboard

Stack backtrace:
0: anyhow::error::::msg
at /home/id/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.99/src/backtrace.rs:27:14
1: ratatui_code_editor::editor::Editor::get_clipboard
at ./src/editor.rs:520:25
2: ratatui_code_editor::editor::Editor::handle_paste
at ./src/editor.rs:544:25
3: ratatui_code_editor::editor::Editor::input
at ./src/editor.rs:78:48
4: minimal::main
at ./examples/minimal.rs:41:20
5: core::ops::function::FnOnce::call_once
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/core/src/ops/function.rs:250:5
6: std::sys::backtrace::__rust_begin_short_backtrace
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/sys/backtrace.rs:152:18
7: std::rt::lang_start::{{closure}}
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/rt.rs:206:18
8: core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/core/src/ops/function.rs:284:21
9: std::panicking::catch_unwind::do_call
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panicking.rs:589:40
10: std::panicking::catch_unwind
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panicking.rs:552:19
11: std::panic::catch_unwind
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panic.rs:359:14
12: std::rt::lang_start_internal::{{closure}}
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/rt.rs:175:24
13: std::panicking::catch_unwind::do_call
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panicking.rs:589:40
14: std::panicking::catch_unwind
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panicking.rs:552:19
15: std::panic::catch_unwind
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panic.rs:359:14
16: std::rt::lang_start_internal
at /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/rt.rs:171:5
17: main
18: __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
19: __libc_start_main_impl
at ./csu/../csu/libc-start.c:360:3
20: _start

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions