On 07/25/2017 12:49 PM, mittend...@digitrace.de wrote:
Hello Qubes users.
I use qvm-run to start a firefox in a disp-vm.
The command is
/usr/bin/qvm-run --dispvm firefox "$url"
or
/usr/bin/qvm-run --dispvm "firefox "$url""
This works fine, as long as there is no & in the url. If there is an &,
this letter and all following symbols are removed.
If I use
firefox "$url"
the correct url is opened up in the current VM as expected
Is this a bug in qvm-run or is there an error in the command?
Thanks.
Than again, maybe not quite a bug. The quotes you supply are used-up by
the dom0 shell. This is expected.
Running the command with --pass-io, you can see that everything to the
right of & is run as a separate command on the target VM, except when
its escaped as \&.
qvm-run --pass-io untrusted "notify-send HI&THERE"
...results in "WHAT not found" in red lettering (from untrusted VM). But
using \& works as a single command.
You can also supply an additional set of quotes like this:
qvm-run --pass-io untrusted "notify-send \"HI&THERE\""
This quoting method seems mose usable because you don't have to be
vigilant about escaping different characters... just escaping the extra
quotes should do it.
--
Chris Laprise, tas...@openmailbox.org
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB 4AB3 1DC4 D106 F07F 1886
--
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 qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/f8f6955a-5bdf-877a-85b6-791e91757c52%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.