Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message when copying data to system clipboard #68

Closed
leo-arch opened this issue Feb 6, 2023 · 3 comments
Closed

Error message when copying data to system clipboard #68

leo-arch opened this issue Feb 6, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@leo-arch
Copy link

leo-arch commented Feb 6, 2023

Describe the bug
I'm getting an error message when copying data to the system clipboard

To Reproduce

cb --copy < files.txt

Error:
xdg_surface@7: error 3: xdg_surface has never been configured (Wayland)
error: XDG_RUNTIME_DIR is invalid or not set in the environment (X)

Expected behavior
No error messages

Additional context
Running on Arch, i3 and xterm (for X), and sway and foot (for Wayland)

Further discussion: leo-arch/clifm#188

@leo-arch leo-arch added the bug Something isn't working label Feb 6, 2023
@leo-arch
Copy link
Author

leo-arch commented Feb 7, 2023

Here's the log produced by WAYLAND_DEBUG=1 cb --copy < files.txt

[3117175.506]  -> wl_display@1.get_registry(new id wl_registry@2)
[3117175.577]  -> wl_display@1.sync(new id wl_callback@3)
[3117175.711] wl_display@1.delete_id(3)
[3117175.749] wl_registry@2.global(1, "wl_shm", 1)
[3117175.808]  -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[3117175.848]  -> wl_display@1.sync(new id wl_callback@5)
[3117175.857] wl_registry@2.global(2, "wl_drm", 2)
[3117175.869] wl_registry@2.global(3, "zwp_linux_dmabuf_v1", 4)
[3117175.881] wl_registry@2.global(4, "wl_compositor", 5)
[3117175.892]  -> wl_registry@2.bind(4, "wl_compositor", 5, new id [unknown]@6)
[3117175.905]  -> wl_display@1.sync(new id wl_callback@7)
[3117175.914] wl_registry@2.global(5, "wl_subcompositor", 1)
[3117175.926] wl_registry@2.global(6, "wl_data_device_manager", 3)
[3117175.938]  -> wl_registry@2.bind(6, "wl_data_device_manager", 3, new id [unknown]@8)
[3117175.955]  -> wl_display@1.sync(new id wl_callback@9)
[3117175.967] wl_registry@2.global(7, "zwlr_gamma_control_manager_v1", 1)
[3117175.978] wl_registry@2.global(8, "zxdg_output_manager_v1", 3)
[3117175.990] wl_registry@2.global(9, "org_kde_kwin_idle", 1)
[3117176.001] wl_registry@2.global(10, "ext_idle_notifier_v1", 1)
[3117176.013] wl_registry@2.global(11, "zwp_idle_inhibit_manager_v1", 1)
[3117176.024] wl_registry@2.global(12, "zwlr_layer_shell_v1", 4)
[3117176.035] wl_registry@2.global(13, "xdg_wm_base", 2)
[3117176.047]  -> wl_registry@2.bind(13, "xdg_wm_base", 2, new id [unknown]@10)
[3117176.069]  -> wl_display@1.sync(new id wl_callback@11)
[3117176.079] wl_registry@2.global(14, "zwp_tablet_manager_v2", 1)
[3117176.090] wl_registry@2.global(15, "org_kde_kwin_server_decoration_manager", 1)
[3117176.102] wl_registry@2.global(16, "zxdg_decoration_manager_v1", 1)
[3117176.113] wl_registry@2.global(17, "zwp_relative_pointer_manager_v1", 1)
[3117176.124] wl_registry@2.global(18, "zwp_pointer_constraints_v1", 1)
[3117176.136] wl_registry@2.global(19, "wp_presentation", 1)
[3117176.147] wl_registry@2.global(20, "zwlr_output_manager_v1", 4)
[3117176.159] wl_registry@2.global(21, "zwlr_output_power_manager_v1", 1)
[3117176.170] wl_registry@2.global(22, "zwp_input_method_manager_v2", 1)
[3117176.181] wl_registry@2.global(23, "zwp_text_input_manager_v3", 1)
[3117176.193] wl_registry@2.global(24, "zwlr_foreign_toplevel_manager_v1", 3)
[3117176.204] wl_registry@2.global(25, "ext_session_lock_manager_v1", 1)
[3117176.216] wl_registry@2.global(26, "wp_drm_lease_device_v1", 1)
[3117176.227] wl_registry@2.global(27, "zwlr_export_dmabuf_manager_v1", 1)
[3117176.238] wl_registry@2.global(28, "zwlr_screencopy_manager_v1", 3)
[3117176.250] wl_registry@2.global(29, "zwlr_data_control_manager_v1", 2)
[3117176.261] wl_registry@2.global(30, "zwp_primary_selection_device_manager_v1", 1)
[3117176.273] wl_registry@2.global(31, "wp_viewporter", 1)
[3117176.284] wl_registry@2.global(32, "wp_single_pixel_buffer_manager_v1", 1)
[3117176.296] wl_registry@2.global(33, "zxdg_exporter_v1", 1)
[3117176.307] wl_registry@2.global(34, "zxdg_importer_v1", 1)
[3117176.318] wl_registry@2.global(35, "zxdg_exporter_v2", 1)
[3117176.330] wl_registry@2.global(36, "zxdg_importer_v2", 1)
[3117176.341] wl_registry@2.global(37, "xdg_activation_v1", 1)
[3117176.353] wl_registry@2.global(38, "zwp_virtual_keyboard_manager_v1", 1)
[3117176.364] wl_registry@2.global(39, "zwlr_virtual_pointer_manager_v1", 2)
[3117176.376] wl_registry@2.global(40, "zwlr_input_inhibit_manager_v1", 1)
[3117176.387] wl_registry@2.global(41, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[3117176.399] wl_registry@2.global(42, "wl_seat", 8)
[3117176.411]  -> wl_registry@2.bind(42, "wl_seat", 7, new id [unknown]@12)
[3117176.424]  -> wl_display@1.sync(new id wl_callback@13)
[3117176.434] wl_registry@2.global(43, "zwp_pointer_gestures_v1", 3)
[3117176.446] wl_registry@2.global(44, "wl_output", 4)
[3117176.457] wl_callback@3.done(7923)
[3117176.542] wl_display@1.delete_id(5)
[3117176.551] wl_display@1.delete_id(7)
[3117176.560] wl_display@1.delete_id(9)
[3117176.569] wl_display@1.delete_id(11)
[3117176.578] wl_display@1.delete_id(13)
[3117176.587] wl_shm@4.format(0)
[3117176.598] wl_shm@4.format(1)
[3117176.608] wl_shm@4.format(875709016)
[3117176.617] wl_shm@4.format(875708993)
[3117176.626] wl_shm@4.format(875710274)
[3117176.635] wl_shm@4.format(842094674)
[3117176.645] wl_shm@4.format(842088786)
[3117176.655] wl_shm@4.format(892426322)
[3117176.664] wl_shm@4.format(892420434)
[3117176.674] wl_shm@4.format(909199186)
[3117176.683] wl_shm@4.format(808665688)
[3117176.693] wl_shm@4.format(808665665)
[3117176.702] wl_callback@5.done(7923)
[3117176.712] wl_callback@7.done(7923)
[3117176.721] wl_callback@9.done(7923)
[3117176.730] wl_callback@11.done(7923)
[3117176.739] wl_seat@12.name("seat0")
[3117176.750] wl_seat@12.capabilities(3)
[3117176.760] wl_callback@13.done(7923)
[3117176.777]  -> wl_data_device_manager@8.get_data_device(new id wl_data_device@13, wl_seat@12)
[3117176.792]  -> wl_data_device_manager@8.create_data_source(new id wl_data_source@11)
[3117176.806]  -> wl_data_source@11.offer("STRING")
[3117176.818]  -> wl_data_source@11.offer("TEXT")
[3117176.827]  -> wl_data_source@11.offer("UTF8_STRING")
[3117176.837]  -> wl_data_source@11.offer("text/plain")
[3117176.846]  -> wl_data_source@11.offer("text/plain;charset=utf-8")
[3117176.862]  -> wl_compositor@6.create_surface(new id wl_surface@9)
[3117176.875]  -> xdg_wm_base@10.get_xdg_surface(new id xdg_surface@7, wl_surface@9)
[3117176.887]  -> xdg_surface@7.get_toplevel(new id xdg_toplevel@5)
[3117176.901]  -> wl_seat@12.get_keyboard(new id wl_keyboard@3)
[3117176.913]  -> xdg_toplevel@5.set_title("Clipboard")
[3117176.964]  -> wl_shm@4.create_pool(new id wl_shm_pool@14, fd 5, 4)
[3117176.978]  -> wl_shm_pool@14.create_buffer(new id wl_buffer@15, 0, 1, 1, 4, 1)
[3117176.993]  -> wl_surface@9.commit()
[3117177.130] wl_keyboard@3.keymap(1, fd 5, 74042)
[3117177.141] wl_keyboard@3.repeat_info(25, 600)
[3117177.164] xdg_wm_base@10.ping(7925)
[3117177.182]  -> xdg_wm_base@10.pong(7925)
[3117177.235] xdg_surface@7.configure(7924)
[3117177.256]  -> wl_surface@9.attach(wl_buffer@15, 0, 0)
[3117177.275]  -> wl_surface@9.damage(0, 0, 1, 1)
[3117177.293]  -> wl_surface@9.commit()
[3117177.310]  -> xdg_surface@7.ack_configure(7924)
[3117177.802] wl_display@1.error(xdg_surface@7, 3, "xdg_surface has never been configured")
xdg_surface@7: error 3: xdg_surface has never been configured

files.txt is just a plain text list of new line separated file names:

file1
file2
file3
...

@Slackadays
Copy link
Owner

@leo-arch Could you try the latest commit 6e7eb60 with clipboard-git? It might fix your issue by changing a small spec-compliance detail

@leo-arch
Copy link
Author

leo-arch commented Feb 7, 2023

Yeap, solved. Great work @Slackadays! The issue is gone, both on Wayland and X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants