On Thu, 22 Nov 2018 10:49:00 -0700 [email protected] wrote:
> On 11/22/2018 10:02 AM, Andrew Savchenko wrote:
> > On Thu, 22 Nov 2018 09:35:42 -0700 [email protected] 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.

I don't understand what you are meaning. Have you ran xclip and
then restarted XFCE? O_o. Of course this will not work, because X
server is being reset during restart. You need to run xclip after
XFCE is started. The ways to automate this are described above.

> xclip -in test.txt

Best regards,
Andrew Savchenko

Attachment: pgpBMDIvf08HU.pgp
Description: PGP signature

Reply via email to