From be013ead4c8950e722b59b4d097cb60563752b68 Mon Sep 17 00:00:00 2001 From: zenobit Date: Sun, 12 Mar 2023 17:29:06 +0100 Subject: [PATCH] config --- config/config | 2 -- quickgui | 12 ++++-------- 2 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 config/config diff --git a/config/config b/config/config deleted file mode 100644 index 2afbd2a..0000000 --- a/config/config +++ /dev/null @@ -1,2 +0,0 @@ -# quickyad config file -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" diff --git a/quickgui b/quickgui index 4cc2783..b7feb2a 100755 --- a/quickgui +++ b/quickgui @@ -17,17 +17,13 @@ if ! command -v yad >/dev/null 2>&1; then 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" + +# distrohopper config file CONFIG_DIR="$HOME/.config/distrohopper" -ICON_DIR="$CONFIG_DIR/vms_icons" -TERMINAL=sakura -replace='"!"' -export "QUICKEMU_VMS_DIR" "CONFIG_DIR" "ICON_DIR" -# create default dirs if they are not present -mkdir -p "$CONFIG_DIR" "$CONFIG_DIR/vms_ready" "$CONFIG_DIR/vms_supported" +source "$CONFIG_DIR/distrohopper.conf" # remove desktop files (ready to run VMs) rm "$CONFIG_DIR"/vms_ready/* # Enter ditrohopper VMs dir