Skip to content

Support for shared clipboard #4894

@sobrinho

Description

@sobrinho

Hi guys,

I don't see any way to make a shared clipboard between the guest and the host.

I would to be able to do something like that:

echo something | xclip
echo something | xsel

And the content goes to the clipboard of the host.

Currently I got:

/vagrant (2.1.3p242) (master)
λ echo something | xsel
xsel: Can't open display: (null)
: Inappropriate ioctl for device

/vagrant (2.1.3p242) (master)
λ echo something | xclip
Error: Can't open display: (null)

/vagrant (2.1.3p242) (master)
λ echo something | xvfb-run xclip
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":99"
      after 10 requests (7 known processed) with 0 events remaining.

/vagrant (2.1.3p242) (master)
λ echo something | xvfb-run xsel

The last one does return success but the content doesn't go the host clipboard.

I have configured the shared clipboard on Vagrantfile as this:

    web.vm.provider :virtualbox do |vb|                                                                                 
      vb.memory = 4096                                                                                                  
      vb.cpus = 2                                                                                                       

      vb.customize ['modifyvm', :id, '--clipboard', 'bidirectional']                                                    
    end                                                                                                                 

Am I missing something or there is no way to do that today?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions