On Wed, Nov 07, 2018 at 11:09:25PM +0100, 799 wrote:
> Hello Ryan,
> 
> On Wed, 7 Nov 2018 at 21:23, Ryan Tate <[email protected]> wrote:
> 
> > [...]
> > I will attempt to type part of the error since I can't copy/paste out of
> > dom0 (grr):
> > [...]
> >
> 
> I am also not satisfied that there is no easy way to copy the clipboard
> content between dom0 and an AppVM.
> Therefor I have written to small scripts which will do exact this (
> https://github.com/one7two99/my-qubes/tree/master/home/bin)
> The scripts need to be launched from dom0 command line and take the AppVM
> name as single argument the AppVM where to clipboard should be copied to or
> from.
> 
> This is only a quick&dirty solution, I would like to have a script that I
> launch and then opens up the "select AppVM" dialog which you get when
> moving files between VMs from the GUI.
> 
> the scripts:
> 
> To copy the dom0 clipboard to an AppVM clipboard:
> 
> #!/bin/bash
> # name   : qvm-xclip-from-vm
> # purpose: Copy the clipboard of an AppVM  to the clipboard of dom0a
> # Usage  : qvm-xclip-from-vm <AppVM>
> AppVM=$1
> qvm-run --pass-io $AppVM 'xclip -o' | xclip -selection clipboard &>/dev/null
> notify-send --urgency low --icon image --expire-time=5000 "$0" "Clipboard
> pasted from $AppVM to dom0"
> 
> to copy the content of an AppVM clipboard to dom0:
> 
> #!/bin/bash
> # name   : qvm-xclip-to-vm
> # purpose: Copy the clipboard of dom0 to the clipboard of an appvm
> # Usage  : qvm-xclip-to-vm <AppVM>
> AppVM=$1
> xclip -o | qvm-run --pass-io $AppVM 'cat | xclip -selection clipboard
> &>/dev/null'
> notify-send --urgency low --icon image --expire-time=5000 "$0" "Clipboard
> pasted from dom0 to $AppVM"
> 
> regards
> 
> - O
> 

You have seen the relevant section in the docs?
https://www.qubes-os.org/doc/copy-from-dom0/#copypaste-from-dom0

You should, of course, be extremely careful about copying to/from dom0.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20181108003631.yon26hxalxe2o74r%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to