mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
renew_ready fix
This commit is contained in:
parent
534722e0f4
commit
330784b46d
1 changed files with 1 additions and 16 deletions
15
dh
15
dh
|
@ -234,8 +234,6 @@ function run_in_terminal() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renew_ready() {
|
function renew_ready() {
|
||||||
echo $"Do you want quickemu to show outputs in the terminal? (y/n)"
|
|
||||||
run_in_terminal
|
|
||||||
cd "$VMS_DIR" || exit 1
|
cd "$VMS_DIR" || exit 1
|
||||||
# for files in "$VMS_DIR"/*; do
|
# for files in "$VMS_DIR"/*; do
|
||||||
# if [ ! -e *.conf ]; then
|
# if [ ! -e *.conf ]; then
|
||||||
|
@ -258,18 +256,6 @@ function renew_ready() {
|
||||||
icon_file="$DH_ICON_DIR/tux.svg"
|
icon_file="$DH_ICON_DIR/tux.svg"
|
||||||
fi
|
fi
|
||||||
# content of desktop files (ready to run VMs)
|
# content of desktop files (ready to run VMs)
|
||||||
if [ "$interminal" == "yes" ]; then
|
|
||||||
cat <<EOF > "$DH_CONFIG_DIR"/ready/"$vm_desktop".desktop
|
|
||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Name=$vm_desktop
|
|
||||||
Terminal=true
|
|
||||||
Exec=sh -c 'cd ${VMS_DIR} && ${portable_prefix}quickemu -vm ${vm_conf}'
|
|
||||||
Icon=$icon_file
|
|
||||||
Categories=System;Virtualization;
|
|
||||||
|
|
||||||
EOF
|
|
||||||
else
|
|
||||||
cat <<EOF > "$DH_CONFIG_DIR"/ready/"$vm_desktop".desktop
|
cat <<EOF > "$DH_CONFIG_DIR"/ready/"$vm_desktop".desktop
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
|
@ -279,7 +265,6 @@ Icon=$icon_file
|
||||||
Categories=System;Virtualization;
|
Categories=System;Virtualization;
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue