Opening All Files in Disposable Qube

Original forum link
https://forum.qubes-os.org/t/4674
Original poster
deeplow
Editors
parulin
Created at
2021-06-21 16:26:50
Last wiki edit
2025-02-11 05:11:57
Revisions
6 revisions
Posts count
6
Likes count
11

Just to be on the safe side, you may want to open all documents / files in a disposable qube. This prevents you from accidentally duoble-clicking a file and opening it on your work qube. This tutorial helps on that.


⚠️ Reminder: As always, this is the internet. Don't follow instructions from here unless you know what you are doing.

It's as easy as pasting two files in your App qube (AppVM).

  1. Create a file .local/share/applications/open-in-dvm.desktop with the following:
[Desktop Entry]
Type=Application
Version=1.0
Name=Open in Disposable VM
Comment=Open file in a Disposable VM
TryExec=/usr/bin/qvm-open-in-vm
Exec=/usr/bin/qvm-open-in-vm --view-only '@dispvm' %f
Terminal=false
Categories=Qubes;Utility;
  1. Create a file .local/share/applications/mimeapps.list with the following:

    File was too long to put here. Get it here|attachment

Troubleshooting

If it is not opening anything, open the qube's settings, then open the "Advanced" tab and make sure you select something other than "None" in Default DisposableVM Template.

Advanced stuff you can do

That's beyond the scope of this guide, but you can then: * Making the disposable viewing qube be offline (not default) * open all applications in the same qube (to avoid having a new disposable qube open every time you open a document).

Further reading

Credits: - SecureDrop