I'm using xfce4-terminal
with the setting enabled: "Automatically copy selection to clipboard"
It works fine when select something, the selection is copied to clipboard. But if I close the terminal window, the clipboard becomes empty. It doesn't matter how I close it, by menu or by hotkey.
And the terminal only clears the content copied from itself. I tried copy some text from Chrome Browser, then close the terminal, the clipboard content is still there.
Why is that? How to keep the clipboard content when close the terminal?
Environment: Kali Linux, xfce
Edit:
Just learned from comments, it seems to be the syncing problem between PRIMARY and CLIPBOARD. I tried tools form other site that works for them, but not work for me:
parcellite
Right click -> Preferences -> Synchronize clipboards
Doeas not work at all.
autocutsel
autocutsel -fork -selection CLIPBOARD -debug -verbose autocutsel -fork -selection PRIMARY -debug -verbose
The debug output is correct when selecting text in terminal, but not synced to
CLIPBOARD
, don't know where it synced to.xfce4-clipman:
Right click -> Properties -> Sync mouse selections
It works for syncing, the problem is that it syncs mouse selection from everywhere, not only from terminal, even with the option "Ignore mouse selections" checked.
Edit.3
of the op. – aj3423 Dec 07 '21 at 05:58PRIMARY
/CLIPBOARD
syncing stuff. That is irrelevant here. Did you have clipman installed when you noticed that you could paste after closing Chrome? Or parcellite? – muru Dec 07 '21 at 06:13