Can't choose the DispVM to open a link in

Setup (following this guide):

https://svensemmler.org/notes/deb-min-templates

file ~/.local/share/qvm-open-in-vm-desktop.desktop

[Desktop Entry]
Encoding=UTF-8
Name=qvm-open-in-dvm
Exec=qvm-open-in-dvm %u
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Network;WebBrowser;
MimeType=x-scheme-handler/unknown;x-schemehandler/about;text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;

In .bashrc,
xdg-settings set default-web-browser qvm-open-in-vm-desktop.desktop

Outcome:
http links open in the default dvm

Expected outcome
http links trigger a Qubes URL.open dialog in Dom0 allowing me to specify the VM like this

screenshot of dom0 OpenURL dialog

I seem to have followed the guide correctly so not sure what has gone wrong. This is a minimal template.

cc @Sven

1 Like

@BenT you need to set the OpenURL policy to ask.

Create or edit /etc/qubes/policy.d/30-user.policy to contain these lines:

qubes.OpenURL           *           @anyvm          @dispvm     ask default_target=online
qubes.OpenURL           *           @anyvm          @anyvm      ask

Where online would be the name of the qube you want to habe pre-selected in the dialog. In case you want that to be a disposable use default_target=@dispvm:online-dvm assuming your dispvm template is called online-dvm.

1 Like

worked, thank you for your help and for your useful guide

1 Like