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
17
dh
17
dh
|
@ -234,8 +234,6 @@ function run_in_terminal() {
|
|||
}
|
||||
|
||||
function renew_ready() {
|
||||
echo $"Do you want quickemu to show outputs in the terminal? (y/n)"
|
||||
run_in_terminal
|
||||
cd "$VMS_DIR" || exit 1
|
||||
# for files in "$VMS_DIR"/*; do
|
||||
# if [ ! -e *.conf ]; then
|
||||
|
@ -258,19 +256,7 @@ function renew_ready() {
|
|||
icon_file="$DH_ICON_DIR/tux.svg"
|
||||
fi
|
||||
# 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]
|
||||
Type=Application
|
||||
Name=$vm_desktop
|
||||
|
@ -279,7 +265,6 @@ Icon=$icon_file
|
|||
Categories=System;Virtualization;
|
||||
|
||||
EOF
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue