Point 1, open a dispvm terminal and launch firefox from there:
This woks fine. The Firewfox session is started and everything works correctly.
Point 2, open Firefox via dom0
I ran the following from dom0:
qvm-run disp2470 firefox. This worked fine.
qvm-open on an already opened dispvm
I opened a new dispvm terminal and from a different VM ran the following:
qvm-open-in-vm disp1353 https://www.google.com/
I had to pick the dispvm name in the dialog box that popped up again, but that’s expected. This actually works. Firefox gets started on the vm correctly.
Trying to use qvm-open on a regular VM
In this test, I ran the exact same command as I did above, but using a regular VM start was not started. This worked fine, the VM started and Firefox is shown.
Trying to start firefox manually from qubes.OpenURL
For this test, I edited the script
/etc/qubes-rpc/qubes.OpenURL in the template and put a call to
xterm just after the
read -r url. Removing some log messages, this is what it looks like:
read -r url
I then shut down my template and ran
qvm-open-in-dvm https://www.google.com/ from a different VM.
The following happened:
- The xterm window appeared
- In the xterm, I type:
- Firefox opens and displays google
- I close the firefox window
- I exit the session in xterm
- Another xterm immediately pops up
- I work in the new xterm session for 10 seconds
- After the 10 seconds have passed, the script tries to start Firefox and the VM exits