ventoy support: copy all ISOs to target dir

This commit is contained in:
zenobit 2023-03-21 15:23:21 +01:00
parent d91ec144cf
commit bb164b7380
2 changed files with 16 additions and 0 deletions

7
config/iso_copy.desktop Normal file
View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=ISOs copy
Exec=iso_copy.sh
Icon=copy.svg
Comment=Copy all ISOs to target dir
Categories=System;Virtualization;Settings;

9
config/iso_copy.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/bash
CONFIG_DIR="$HOME"/.config/distrohopper
source "$CONFIG_DIR"/distrohopper.conf
yad --file --directory > target
echo "It will take while..."
cd "$VMS_DIR" || exit 1
cp */*.iso "$target"
echo "Done"