I upgrade from Ubuntu 18.04 to 22.04 and having clipboard clearing issues using xsel
If I ctrl+c in a text editor and run xsel -cb; xsel -cp; xsel -cs
in terminal, the clipboard doesn't clear (ctrl+v continues to paste content). Additionally, xsel -b
does not return anything. However ctrl+v does paste the copied content with ctrl+c.
I also have a keyboard shortcut to clear the clipboard with the same behavior (command: bash -c "xsel -cb; xsel -cp; xsel -cs"
)
Now... once I use xsel
in terminal with a copy command: echo hello|xsel -b
everything works normally going forward.
The keyboard shortcut works as expected, even on subsequent ctrl+c content, until I log off the user or reboot the machine.
I've tried purging xsel and re-installing, but that has not resolved the issue. Any thoughts on how I can resolve?