diff --git a/worlds-installer.sh b/worlds-installer.sh index faf2d06..3504a6e 100755 --- a/worlds-installer.sh +++ b/worlds-installer.sh @@ -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" } diff --git a/worlds.desktop b/worlds.desktop index 6fd1b41..2331156 100755 --- a/worlds.desktop +++ b/worlds.desktop @@ -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