On 11/22/2018 10:02 AM, Andrew Savchenko wrote: > On Thu, 22 Nov 2018 09:35:42 -0700 the...@sys-concept.com wrote: >> I have a simple text file (with few lines in it) and using XFCE. >> >> How do I copy text from that file to "clipboard" so that user can past >> it with "ctrl-v" >> I would like to that text to be in a clipboard after XFCE started. > > Use x11-misc/xclip: > xclip -in filename_with_paste > > Add this script to you XFCE autostart. This can be done either by: > > 1) GUI: Settings -> Session and Startup -> Application Autostart > https://docs.xfce.org/xfce/xfce4-session/preferences#application_autostart > > 2) Custom run hook: > Edit ~/.config/xfce4/xinitrc properly (call xclip, then > default xfce4 xinitrc) > https://unix.stackexchange.com/a/267238 > > Best regards, > Andrew Savchenko
Hmm... I tried it from the command line and restarting the XFCE; nothing in the clipboard, empty. Nothing to paste. xclip -in test.txt -- Thelma