distrohopper

This commit is contained in:
zenobit 2023-03-12 14:52:04 +01:00
parent 70624baf6a
commit c987f92916
2 changed files with 80 additions and 10 deletions

View file

@ -3,7 +3,7 @@
# DEBUG mod
#bash -x quickyad 2>&1 | tee output.log
# YAD gui script for excellent quickemu
# YAD gui script using Forked excellent quickemu
#TODO Download Icons
#TODO Add homepages to right click
@ -13,17 +13,13 @@ if ! command -v yad >/dev/null 2>&1; then
echo "You are missing yad..." >&2
exit 1
fi
if ! command -v quickemu >/dev/null 2>&1; then
echo "You are missing quickemu..." >&2
exit 1
fi
# generate random key for yad (for connecting tabs in notebook together)
key=$((RANDOM % 9000 + 1000))
# set current dir as QUICKEMU_VMS_DIR
#QUICKEMU_VMS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# set default directories
QUICKEMU_VMS_DIR="$HOME/.local/share/quickemu"
CONFIG_DIR="$HOME/.config/quickemu"
CONFIG_DIR="$HOME/.config/distrohopper"
ICON_DIR="$CONFIG_DIR/vms_icons"
TERMINAL=sakura
replace='"!"'
@ -32,7 +28,7 @@ export "QUICKEMU_VMS_DIR" "CONFIG_DIR" "ICON_DIR"
mkdir -p "$CONFIG_DIR" "$CONFIG_DIR/vms_ready" "$CONFIG_DIR/vms_supported"
# remove desktop files (ready to run VMs)
rm "$CONFIG_DIR"/vms_ready/*
# Enter quickemu VMs dir
# Enter ditrohopper VMs dir
cd "$QUICKEMU_VMS_DIR" || exit
# check for VMs .conf files (ready to run VMs)
for vm_config_file in *.conf; do