qvm-run: piping to xclip

54 views
Skip to first unread message

quentin.l...@gmail.com

unread,
May 3, 2018, 3:31:35 AM5/3/18
to qubes-users
Hello,

I am currently trying to get a script working to copy passwords from a password store VM to different VMs, using qvm-pass.

I tried something like:

qvm-run vmname 'qvm-pass gmail | xclip'

The password is copied to the vm but the command doesn't terminate.

In fact,

qvm-run vmname 'echo abc | xclip'

Doesn't terminate either. Can someone explain what I'm missing here?

[799]

unread,
May 3, 2018, 12:35:03 PM5/3/18
to qubes-users
Hello Quentin,
I run into the same issue when writing a script to overcome the problem that working with screenshots is very hard in Qubes.
As only dom0 can make screenshots I was looking for a way to send dom0-screenshots into the clipboard of an AppVM.
The solution I came up with was a script that needs to be run in dom0, which will allow the user to make screenshot and paste the screenshot into the AppVM clipboard.

https://github.com/one7two99/my-qubes/blob/master/home/bin/qvm-screenshot-to-clipboard.sh

It has also some information in out how you can send messages to the notification area, something I think is important as soon as data is transfered between VMs or dom0 and VMs.

I had also a problem that the script will only quit after the content has been pasted from the AppVMs clipboard.
I am sure that this is the same in your case.

Try it out and give me a feedback.

Question to others:
How is it possible to overcome this "continue-after-clipboard-has-been-pasted"problem?

[799]
Reply all
Reply to author
Forward
0 new messages