On 12/29/20 7:02 PM, Ulrich Windl wrote:
Better: create in dom0 a file containing:
#!/bin/bash
qvm-copy-to-vm $(zenity --entry --title='Send to VM' --text='Destination
VM') "${BASH_ARGV[@]}"
Save that as an executable script, such as "~/.local/bin/send-to-vm.sh".
Then, open dom0 file manager, right click any png, click open with other
application, and under "use a custom command" enter "send-to-vm.sh %s".
When trying, it seems my Dom0 does not have a file manager in the menu.
I had to run "thunar" manually from the terminal.
you are right.
Also: Wouldn't qvm-move-to-vm be preferrable (also replacing "Send" with
"Move")?
you are right again. It was a "proof of concept" code. Thank you for the
correction!
This "registers" the script in the application list.
Then, when you take a screenshot, instead of choosing "save", choose
"open with..." and see if your script shows up in the list of available
applications. If still not, you might have to write a simple .desktop
file in ~/.local/share/applications in order for it to show
up as an option.
Or write it by hand: like
~/.local/share/applications/userapp-screenshot.desktop containing
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/home/user/.local/bin/send-to-vm.sh %f
Name=Send a screenshot to VM
Comment=Custom definition for SCREENSHOT.sh
cheers
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/723ac154-6fb1-3469-b43e-9e960a0d630f%40web.de.