On 2020-01-17 11:40, [email protected] wrote:

Hey,

Is there a way to open a bunch of files in the same dispVM ? Yes, I can
copy/move those files and open them in the dispVM, that is what I do
right now - but it would be nice if there was a simpler way to do so.

You could write a set of scripts for that fairly easily, depending on your personal use-case.

Option A
One possibility is to have your local script first start the DispVM instance spawning a File Manager, then figure out the new DispVM name, and in a loop send all the files to that DispVM instance. Then Use the File Manager to open the documents, and when you close the file manager the DispVM goes away. If you need to retain the documents use the file manager to send them back first.



Option B
1) The first script adds all the files to a single tarfile and then calls qvm-open-in-dvm for that one archive file. You can try playing with using "Open With Other Application" from your File Manager to kick off the script, but that might just call the script multiple times.

2) Then in the DispVM and have the default app for '*.tgz' be your script set to extract and open the individual documents with their respective applications.

Both the sending and receiving scripts could live in the respective templates so that all AppVMs could send multiple files and the DispVM could extract and deal with them according to the xdg default applications for the document types. If you don't like assigning the *.tgz to have a special handler you can always create the tgz file and rename it to use a unique extension not assigned to any current application.

Mime/XDG association
https://superuser.com/questions/162092/how-can-i-register-a-custom-protocol-with-xdg



Option C
Create a temporary file system in a file and then use qvm-block to clone the files and attach and mount that fs into the DispVM. When finished delete/wipe the temporary file.




--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/191cc953-0469-53c9-efe3-f319280bff49%40jhuapl.edu.

Reply via email to