mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
dh: temporary duplicate
This commit is contained in:
parent
1168b32dd0
commit
6d9637de9f
1 changed files with 5 additions and 10 deletions
15
dhT → dhtemp
Normal file → Executable file
15
dhT → dhtemp
Normal file → Executable file
|
@ -14,11 +14,7 @@ set_variables() {
|
||||||
#GTK_THEME="alt-dialog"
|
#GTK_THEME="alt-dialog"
|
||||||
DH_CONFIG_DIR="$HOME/.config/distrohopper"
|
DH_CONFIG_DIR="$HOME/.config/distrohopper"
|
||||||
DH_CONFIG="$DH_CONFIG_DIR/distrohopper.conf"
|
DH_CONFIG="$DH_CONFIG_DIR/distrohopper.conf"
|
||||||
DH_ICON_DIR="/usr/share/icons/distrohopper"
|
|
||||||
TERMINAL=sakura
|
|
||||||
replace='"!"'
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
export "DH_CONFIG_DIR" "DH_CONFIG" "DH_ICON_DIR" "TERMINAL" "replace" # "GTK_THEME"
|
|
||||||
source "$DH_CONFIG"
|
source "$DH_CONFIG"
|
||||||
# Set traps to catch the signals and exit gracefully
|
# Set traps to catch the signals and exit gracefully
|
||||||
trap "exit" INT
|
trap "exit" INT
|
||||||
|
@ -143,7 +139,7 @@ run_gui() {
|
||||||
yad --plug="$key" --tabnum=1 --monitor --icons --listen --read-dir="$DH_CONFIG_DIR"/ready --sort-by-name --no-buttons --borders=0 --icon-size=48 --item-width=76 &
|
yad --plug="$key" --tabnum=1 --monitor --icons --listen --read-dir="$DH_CONFIG_DIR"/ready --sort-by-name --no-buttons --borders=0 --icon-size=48 --item-width=76 &
|
||||||
yad --plug="$key" --tabnum=2 --monitor --icons --listen --read-dir="$DH_CONFIG_DIR"/supported --sort-by-name --no-buttons --borders=0 --icon-size=48 --item-width=76 &
|
yad --plug="$key" --tabnum=2 --monitor --icons --listen --read-dir="$DH_CONFIG_DIR"/supported --sort-by-name --no-buttons --borders=0 --icon-size=48 --item-width=76 &
|
||||||
yad --plug="$key" --tabnum=3 --monitor --icons --listen --read-dir="$DH_CONFIG_DIR" --sort-by-name --no-buttons --borders=0 --icon-size=48 --item-width=76 &
|
yad --plug="$key" --tabnum=3 --monitor --icons --listen --read-dir="$DH_CONFIG_DIR" --sort-by-name --no-buttons --borders=0 --icon-size=48 --item-width=76 &
|
||||||
yad --dynamic --notebook --key="$key" --monitor --window-icon="$DH_ICON_DIR"/hop.svg --width=900 --height=800 --title="DistroHopper" --listen --no-buttons --tab="run VM" --tab="download VM" --tab="settings"
|
yad --dynamic --notebook --key="$key" --monitor --window-icon="$DH_ICON_DIR"/hop.svg --width=900 --height=800 --title="DistroHopper" --listen --no-buttons --tab="run VM" --tab="download VM" --tab="settings" --button "test"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_tui() {
|
run_tui() {
|
||||||
|
@ -267,7 +263,11 @@ add_distro() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# run
|
# run
|
||||||
|
check_dependencies
|
||||||
|
set_variables
|
||||||
|
|
||||||
cd "$VMS_DIR" || set_dir
|
cd "$VMS_DIR" || set_dir
|
||||||
|
|
||||||
if [ "$1" = "-t" ] ; then
|
if [ "$1" = "-t" ] ; then
|
||||||
run_tui
|
run_tui
|
||||||
else
|
else
|
||||||
|
@ -275,8 +275,3 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
renew_supported
|
|
||||||
renew_ready
|
|
||||||
|
|
||||||
echo "Done"
|
|
Loading…
Add table
Add a link
Reference in a new issue