I'm trying to write a script to convert a file and copy the converted text to the clipboard so I can paste it into a website. This question got me started. My script contains, in part:
xsel -ib < txt/"$BASE".txt
After running that command, I can paste into my text editor (Geany) no problem. However, when I paste into Chromium, nothing gets pasted; Chromium seems to think the clipboard is empty. What's going on?
Chrome uses both the clipboard-proper and the primary clipboard, and in this instance is attempting to paste from the wrong clipboard. Try this instead:
There's a whole load of more detail in this post on Unix.SE.