🐛 fix(dh): set correct icon path for hop icon

The icon path for the hop icon was not set correctly in some parts of the code. The variable $icon_file was not defined, so the icon path was not being set correctly. The correct path is now set to $DH_ICON_DIR/hop.svg.
This commit is contained in:
zenobit 2023-04-12 01:17:19 +02:00
parent 1717296740
commit 16b193dee3
1 changed files with 3 additions and 3 deletions

6
dh
View File

@ -154,7 +154,7 @@ EOF
if [ "$interminal" == "yes" ]; then
terminal='true'
fi
icon='hop'
icon="$DH_ICON_DIR/hop.svg"
categories='System;Virtualization;'
desktop_entry_create
sudo cp ${TMP_DIR}/dh.desktop /usr/share/applications/
@ -322,7 +322,7 @@ EOF
else
execmd="sh -c 'cd $VMS_DIR && yad --form --separator=\" \" --field=\"Release:CB\" \"${releases// /$replace}\" --field=\"Edition:CB\" \"${editions// /$replace}\" | xargs -I{} sh -c \"${portable_prefix}quickget $get_name {}\";$SHELL'"
fi
icon='hop'
icon="$icon_file"
categories='System;Virtualization;'
desktop_entry_create
done < "$DH_CONFIG_DIR"/supported.md
@ -376,7 +376,7 @@ EOF
--button="Exit":0 &
yad --dynamic --notebook --key="$key" --monitor --listen --no-buttons \
--mouse --selectable-labels \
--window-icon="$DH_ICON_DIR"/hop.svg --width=900 --height=900 \
--window-icon="$DH_ICON_DIR/hop.svg" --width=900 --height=900 \
--title="DistroHopper" --tab="run VM" --tab="download VM" --tab="Options"
# posible: --undecorated --fixed ontop --buttons-layout=spread edge start end center --keep-icon-size --image=IMAGE --splash
VAR1="$?"