Setup firefox to open certain files in dspvms?

60 views
Skip to first unread message

Stumpy

unread,
Apr 20, 2020, 3:43:45 PM4/20/20
to Qubes users
I made a desktop file and put it in my .local/share/applications
directory but it does not seem to be working?

[Desktop Entry]
Encoding=UTF-8
Name=WriterVM
Exec=qvm-open-in-dvm %u
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Network;WebBrowser;
MimeType=x-scheme-handler/unknown;x-scheme-handler/about;text/html;text/xml;application/doc;application/dot;application/docx;application/xls;application/xlsx;application/ppt;application/pptx;

Any thoughts on why this is not working?

Sven Semmler

unread,
Apr 20, 2020, 8:07:53 PM4/20/20
to Stumpy, Qubes users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi Stumpy,

not quite sure what you are asking. Your subject implies you want to
configure Firefox to open certain links/files in a DVM. To acomplish
that you want to get Rafaelle Florio's Qubes URL Redirector extension:
https://github.com/raffaeleflorio/qubes-url-redirector
That looks fine. If you now register it via xdg-settings set
default-web-browser all other applications will attempt to open URLs
using the qvm-open-in-vm command.

More background and documentation:
https://github.com/Qubes-Community/Contents/blob/master/docs/common-tasks/opening-urls-in-vms.md

(Well worth reading and understanding in detail!)

/Sven

- --
public key: https://www.svensemmler.org/0x8F541FB6.asc
fingerprint: D7CA F2DB 658D 89BC 08D6 A7AA DA6E 167B 8F54 1FB6

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE18ry22WNibwI1qeq2m4We49UH7YFAl6eOU0ACgkQ2m4We49U
H7bZUQ//TF04HSALk4ngLdW4ZkTwUMbVahqxeteciv0NASWIiQtiikS1rjbFHdPv
Dcr1IdRt4+V339qsoUwHgqH5HwmQIOPbIDatMchts/05D9uvgyNnxqvnMpFZEOoS
inAeFChew5wHN1cuhEWS3vk2KhOIoyHxXGjmBDPwVRvncDIaGcxsRF75xwxHvayw
evlQDkedIeuZdmAoge4LuOvGhiXINL8LBYYzuNraoVP2KpXhJDkcvyjtS7MdeNTx
U5ulX7fvNrFAe/r+8UNiiU2vldHOU13RzuloOHMdX5Ht1zi483KOy3syhvDlcJCt
zk2kI09lB1j/cHwL9SJpUlXGlgEiCudwiaSCXnf7KtY2ZVSEnPuaO0hltiiJyO6g
EP1deKlGFS3qMWRF8xi1OJPz0jMO0Yd9NCW3JJbyzafp3ZMkTrmGMFuX3I8tuVLn
Jl47HsKLzF3GsyLF0hbVkv5dRwav5eQykm6A6ISYzB7LIYf5l6ehk3PNV9R+2hkf
eYJIlxSRQHGJXe982w3QHA9IZuPdXhEyT4pvvBhYDcytG4Coi2BjOimSurJE8DuJ
irpaToWnCbbwiYBGzhgqh+gGh8HzQFLIAbaYMPW5jRZeoVwJtThrFJ2W4r0kXxHy
UXiwrcd/445mVhJGEK3fbp+Qt1nLMjlZYdaQsBfsrV7uQA77UC0=
=kNwU
-----END PGP SIGNATURE-----

Stumpy

unread,
May 7, 2020, 7:57:01 AM5/7/20
to qubes...@googlegroups.com
Hi Sven, thanks for responding!!! and apologies for the ambiguity.

I had no idea about that extension, but you nailed it! Very much
appreciated! I realize its beta (and seemingly no longer being
maintained?) but geeze that should be included in qubes by default!

will try to install it. Cheers

Stumpy

unread,
May 7, 2020, 8:45:16 AM5/7/20
to qubes...@googlegroups.com, raffael...@protonmail.com
This is *supremely* useful, i often use dvms but then have pages i want
to send to another vm and end up having to open Firefox in that appvm
then c/p the link to the other appvm from the dvm; not a huge deal but
seemed like it could be stream lined.

After some head scratching i managed to clone and compile the xpi (I
dont really understand how to use git). It worked fine in the appvm
where i installed it but I then tried to copy the xpi to an appvm and
use it in that appvm but while it seemed to install fine it didn't
actually work:
despite my setting the default action to open in dvm it still blocks
every page and requires that allow be set for every link.
when i tried to right click on a link and select open in dvm or the
appvm that i made default nothing would happen.

So. I am usually hesitant to "experiment" on my templates so want to
first ask, if i install it on my template should it then be available in
all the appvms that are using that template?

Thanks in advance for the help!

Sven Semmler

unread,
May 7, 2020, 10:16:24 PM5/7/20
to Stumpy, qubes...@googlegroups.com, raffael...@protonmail.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Thu, May 07, 2020 at 08:45:09AM -0400, Stumpy wrote:
> So. I am usually hesitant to "experiment" on my templates so want to first
> ask, if i install it on my template should it then be available in all the
> appvms that are using that template?

Yes, that's how I've always installed it:

- git clone
- sudo make install (in the template)

/Sven

- --
public key: https://www.svensemmler.org/0x8F541FB6.asc
fingerprint: D7CA F2DB 658D 89BC 08D6 A7AA DA6E 167B 8F54 1FB6

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE18ry22WNibwI1qeq2m4We49UH7YFAl60wO0ACgkQ2m4We49U
H7YwaxAA0DwakGKkAxkV4KnoXyMXJLRc5DHl/InDwww6t07tJHHftuN8KhwKh19r
/ll/b1xs7S+2cOJPnOFCs/7V9vq0BAts+hpF5Q3TXWizuwt3Cy2IEYNJAweRoepC
aES4ufzUIJg72JQj6fSrkpMBLZLgFt9tLAb1i48LHJCrKRZv4yYDGI3HnYv2o8FT
mruHv3sON1YJUQY/iC0x/1RxKSlf+Nkunp8JyDGS5wXqVVQrjyUiecejspZc4xL7
f4j+nGh8fknC9gxghclyeT1eXPyM3e1YzV9JHaiGCoH20f28ve2XfqCxToZTWzuU
+fsZkiMhOGZxOXaNRcd2IwzsbG856Tyo/GhK/sfdn8OvBnPsAGBQ0J43dWVHF0/E
6/jz17bQaqcQd/xBmtNeqYSWresKIgerSx+i99o0JRqeg/OtkZSep/q3RG0NynsP
xFG77jkXlbq9+AsbmhKTVa2KY+4qxqFkGJrDQba7cd0faO/Hu2MekMaPOROxwH8+
sEhZ6X2QXAqEgl1A+cxVsdAxHjYtvMjJKOKYzRAcNfda6L3KWQ1WOv4yX2dr3upg
j7bL4XRJfLpFqTKFoGIPXyCt0f+96/T5Q1AedologbQ+J/NpzNyE8KGu25J+JzMo
rygkc/Gps9f8+9xyrKFhn3EYRKe+jr/DDAPoQMZNqMO/1wZgqk0=
=QtHo
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages