Fixed the desktop file function

This commit is contained in:
Nicholas George 2021-01-28 16:31:17 -06:00
parent a0aba594d2
commit eb94666e2c
2 changed files with 4 additions and 3 deletions

View File

@ -163,9 +163,10 @@ launchscript () {
menufile () {
wget -O"$WORLDSDIR/worlds.desktop" "https://raw.githubusercontent.com/Vencorr/Worlds-LinuxScript/master/worlds.desktop"
echo "" > "$HOME/.local/share/applications/worlds.desktop" #Making sure the file is clear.
while read line
do
line=${line/\${WORLDSDIR\}/$directory}
line=${line/\${WORLDSDIR\}/$WORLDSDIR}
echo $line >> "$HOME/.local/share/applications/worlds.desktop"
done < "$WORLDSDIR/worlds.desktop"
}

View File

@ -1,10 +1,10 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=WorldsPlayer
Exec=${directory}/launch.sh
Exec=${WORLDSDIR}/launch.sh
Comment=
Terminal=false
Icon=${directory}/icon.png
Icon=${WORLDSDIR}/icon.png
Type=Application
Hidden=false
NoDisplay=false