helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
33.44k stars 2.48k forks source link

system copy/paste is bad when in root (Nixos) #3009

Closed Jedsek closed 2 years ago

Jedsek commented 2 years ago

Summary

space + y/p could not copy/paste into system clipboard.

Reproduction Steps

I tried this: 1. `sudo hx` 2. `iabcde` 4. `xy` 5. go to other app and paste I expected this to happen: I could successfully paste Instead, this happened: bad behavious ### Platform OS: NixOS 22.11 (Raccoon) x86_64 DE: GNOME42.2 ### Terminal Emulator alacritty ### Helix Version helix 22.05 (27609f50)
the-mikedavis commented 2 years ago

Do you have a clipboard provider installed? https://github.com/helix-editor/helix/wiki/Troubleshooting#copypaste-fromto-system-clipboard-not-working

Jedsek commented 2 years ago

Do you have a clipboard provider installed? https://github.com/helix-editor/helix/wiki/Troubleshooting#copypaste-fromto-system-clipboard-not-working

yes, I installed wl-clipboard

Jedsek commented 2 years ago

Oh, this is a problem of wl-clipboard.Close it.

Jedsek commented 2 years ago

I have to type sudo -E wl-copy to use wl-clipboard in root, but just xclip is good