| Moving dom0 screenshots immediately to VMs | wordsw...@gmail.com | 19/01/18 00:55 | 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 I think this can be accomplished with .desktop application file 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 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 |
| Re: Moving dom0 screenshots immediately to VMs | Alex Dubois | 19/01/18 03:32 | This could be useful feature. Happy to help for the dev part... What do you think about the default behavior being to: I'm suggesting these because the Qubes default should always be the safest that can be implemented... |
| Re: Moving dom0 screenshots immediately to VMs | Krišjānis Gross | 19/01/18 03:43 | Could be a very useful feature! Current means of taking a screen shot are very very clumsy :) |
| Re: Moving dom0 screenshots immediately to VMs | wordsw...@gmail.com | 19/01/18 03:48 | 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. |
| Re: Moving dom0 screenshots immediately to VMs | wordsw...@gmail.com | 19/01/18 04:02 | 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] 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] |
| Re: [qubes-users] Re: Moving dom0 screenshots immediately to VMs | Tom Zander | 19/01/18 04:05 | On Friday, 19 January 2018 12:48:27 CET wordsw...@gmail.com wrote:Yes, it does. But this is not something you should use and then send to a VM becuase that VM then suddenly gets knowledge about all the other windows on screen that may be from another VM. Imagine having your Vault VM window open with all your passwords and then you auto-upload a screenshot of that into a compromised VM which then causes the screenshot to be uploaded to a server. I'm not aware of any way to avoid this data-leakage using the screenshot application in dom0. -- Tom Zander Blog: https://zander.github.io Vlog: https://vimeo.com/channels/tomscryptochannel |
| Re: [qubes-users] Re: Moving dom0 screenshots immediately to VMs | Alex Dubois | 19/01/18 09:52 | On Friday, 19 January 2018 12:05:36 UTC, Tom Zander wrote: Default should prevent, but user should have choice. > XFCE (default Qubes Windows manager) provides a screenshot application (Menu/System Tools/Screenshot activated with the PrintScreen Key as well) What I think needs to be done: |
| Re: [qubes-users] Re: Moving dom0 screenshots immediately to VMs | Alex Dubois | 19/01/18 11:00 | OK for the impatient, this will send a screenshot of the current window to a VM (no selection of target VM for the moment): 1- Bind shortcut key: 2- Create script that will copy the file to the target VM #!/bin/bash where <VMName> is the started VM that will receive the screenshot. You can obviously choose a path that user has write access to. You may want to clean the file that is save by default in /tmp by adding this line 3- Make the script executable |
| Re: [qubes-users] Re: Moving dom0 screenshots immediately to VMs | Yethal | 19/01/18 11:37 | there is the qvm-screenshot-tool. Is that not enough? |
| Re: [qubes-users] Re: Moving dom0 screenshots immediately to VMs | Alex Dubois | 19/01/18 12:16 | Never heard of it. In which package is-it? |
| Re: [qubes-users] Re: Moving dom0 screenshots immediately to VMs | Yethal | 19/01/18 22:12 | |
| Re: [qubes-users] Moving dom0 screenshots immediately to VMs | Jean-Philippe Ouellet | 19/01/18 22:21 | This problem has already been solved, but upstreaming it was stalled
for some policy reasons. See here: https://github.com/QubesOS/qubes-issues/issues/953 My implementation can be found here: https://github.com/jpouellet/qubes-screenshot-helper Regards, Jean-Philippe |
| Re: [qubes-users] Moving dom0 screenshots immediately to VMs | Alex Dubois | 20/01/18 01:51 | Ah great. I like this implementation. Reviewing the code it does not seem to introduce any risk and provide all the functionality required. Could you explain briefly the steps to install (after the git pull). May I also ask you for some help/pointer on a yubikey package I've done. I just need to do the packaging and it may save me some time if you were to give me few pointers... Project is here... the doc state that it is packages, but it is not (yet)... Please reply in that thread if you want: |
| Re: [qubes-users] Moving dom0 screenshots immediately to VMs | Jean-Philippe Ouellet | 21/01/18 23:09 | Set up qubes-builder [1], clone the repo into qubes-src subdir of
qubes-builder repo, then add: COMPONENTS += your-component-name to builder.conf, and `make your-component-name` from top level qubes-builder dir. Documentation on how to package your own things such that they plug into the Qubes builder framework (via Makefile.builder) can be found under doc/ in a checked out qubes-builder. If you have further specific questions, feel free to ask on qubes-devel. Regards, Jean-Philippe [1]: https://www.qubes-os.org/doc/qubes-builder/ |