Association to DVM

26 views
Skip to first unread message

Vít Šesták

unread,
Dec 9, 2015, 5:03:40 PM12/9/15
to qubes-users
I have a small (i.e. 1GiB for root partition) StandaloneVM without a webbrowser. I've realized that I sometimes need to open some links. My approach is using DVM for this purpose.

I've tried to create a desktop file for that and put it in /usr/share/applications and rebuild relevant caches (update-mime-database and update-desktop-database). It looked fine, except that xdg-open https://example.com still didn't work. See https://gist.github.com/v6ak/4d833087a4c9b86573d2 for the desktop file contents.

Finally, I've implemented a crazy hack: ln -s /usr/bin/qvm-open-in/dvm /usr/bin/xdg-open. This seems to work fine in my case, but it might break in some more general case.

The hack, however, works somehow in some other VM, at least for opening files. (I added some more MIME types in the desktop file.) This might be useful, for example, for opening files in DVM directly from Firefox. However, there is one potential pitfall: When DVM becomes a default handler for something in a TemplateVM (which might accidentally happen), it might cause an infinite recursion. Maybe some blacklisting in DVM would solve the problem.

Another hack would be symlinking xdg-open to qvm-open-in-dvm, but using something like xdg-open.real when qubes.OpenInVm is called.

Although I have solved the main issue (through a hack), I believe that getting this working more generally might be useful. Ideas are welcome.

Regards,
Vít Šesták 'v6ak'
Reply all
Reply to author
Forward
0 new messages