On Friday, January 19, 2018 at 6:48:28 AM UTC-5, wordsw...@gmail.com wrote: > On Friday, January 19, 2018 at 6:32:33 AM UTC-5, Alex Dubois wrote: > > On Friday, 19 January 2018 08:55:27 UTC, wordsw...@gmail.com wrote: > > > I've been working on a solution for this, but unfortunately there are too > > > many factors that I'm not familiar with. > > > > > > My goal is to to able to: > > > > > > 1) Take a screenshot using the dom0 hotkey > > > 2) In the "Screenshot" dialogue, select a script from the "Open with:" > > > option > > > 3) A text entry box that prompts me for the destination VM > > > 4) The screenshot is sent to the indicated VM > > > > > > I think this can be accomplished with > > > > > > .desktop application file > > > zenity > > > qvm-move-to-vm/qvm-copy-to-vm/qvm-open-in-vm > > > > > > but I'm lost in the details. > > > > > > Current problems > > > > > > - I can't get dom0 to include my .desktop application files as "Open > > > with:" options in the "Screenshot" dialogue > > > - I'm not sure what format the screenshot is in initially... will the > > > .desktop application receive a bunch of bits? Or the path to a temporary > > > file? > > > - I can figure out how to pipe the screenshot if it's a file, but I don't > > > know how to handle a "bunch of bits" scenario > > > > > > Has anyone done this already? I'm aware of qvm-screenshot-tool.sh, which > > > looks great, but the code is too complicated for me to review and I just > > > need basic functionality anyway. > > > https://github.com/evadogstar/qvm-screenshot-tool/blob/master/qvm-screenshot-tool.sh > > > > This could be useful feature. Happy to help for the dev part... > > > > What do you think about the default behavior being to: > > - screen-shot only a VM window? Is it available? > > - screen-shot an area that you lasso? > > > > I'm suggesting these because the Qubes default should always be the safest > > that can be implemented... > > Qubes already has built-in the capability to screenshot the entire desktop > (Printscreen) or the current window (Ctrl+Printscreen). > > Lasso would be nice I suppose, but might open up some way to exploit.
Just so I'm clearer - I'm just talking about a simple solution, not building any new application. We could use a .desktop file similar to this [Desktop Entry] Encoding=UTF-8 Name=BrowserVM Exec=qvm-open-in-vm APPVMNAME %u Terminal=false X-MultipleArgs=false Type=Application Categories=Network;WebBrowser; MimeType=x-scheme-handler/unknown as documented in https://www.qubes-os.org/doc/tips-and-tricks/#opening-links-in-your-preferred-appvm I've gotten this done so far [Desktop Entry] Encoding=UTF-8 Name=Open Screenshot in VM Exec=zenity --entry --text="Enter destination domain name:" | qvm-open-in-vm %u Terminal=false X-MultipleArgs=false Type=Application Categories=Network;WebBrowser; MimeType=x-scheme-handler/unknown -- 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 qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/ef593abc-d71e-4cb5-8940-c12b06a6262d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.