From bb164b7380ff47dd3d50ca311bbdb40bea79b1a8 Mon Sep 17 00:00:00 2001 From: zenobit Date: Tue, 21 Mar 2023 15:23:21 +0100 Subject: [PATCH] ventoy support: copy all ISOs to target dir --- config/iso_copy.desktop | 7 +++++++ config/iso_copy.sh | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 config/iso_copy.desktop create mode 100755 config/iso_copy.sh diff --git a/config/iso_copy.desktop b/config/iso_copy.desktop new file mode 100644 index 0000000..4dafeab --- /dev/null +++ b/config/iso_copy.desktop @@ -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; diff --git a/config/iso_copy.sh b/config/iso_copy.sh new file mode 100755 index 0000000..6b1d5e8 --- /dev/null +++ b/config/iso_copy.sh @@ -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"