On Sunday, December 30, 2018 at 5:32:58 AM UTC-8, unman wrote: > On Fri, Dec 28, 2018 at 10:28:12AM -0800, Dave C wrote: > > I've written a qrexec script which, among other things, attempts to place > > something into the clipboard, using `xsel`. > > > > xsel fails, with error: "xsel: Conversion refused" > > > > Attempting to troubleshoot, I've learned that `xsel -o` can show the > > contents of the clipboard, but `xsel` fails to set the clipboard. Both > > `xsel -v` and `xsel -b -v` fail with the "conversion refused" messages. > > `xsel` works fine when I run it from a terminal. The error occurs only > > when running via qrexec. > > > > For some context, if you're interested... I recently became aware of a > > password manager with some interesting features: > > https://github.com/renatoathaydes/go-hash. I'd like to modify it, so that > > it both opens a URL in a VM, and places a password in that VM's clipboard. > > I've got most of that working, except that I can't get the password into > > the clipboard, because xsel fails with "conversion refused". > > > > It would help if you provided a copy of your script and some detail on > where you are calling xsel, how you are handling it on the receiving > side, and what templates you are using. > Are you using the normal Qubes clipboard paste mechanism or are you > rolling your own?
I'll attach a file, which is a version of the script I'm working on. It's based on /etc/qubes-rpc/qubes.OpenURL. In addition to opening URLs, it takes the first line of stdin and uses `xsel` to put that line into the clipboard. It doesn't work. If you change `xsel -v`, you'll see it gets the error I've described in the first post. -- 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/01fcad0f-c818-448f-91cc-2a28310ae332%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
qpass.ClipOpenURL
Description: Binary data
