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 () { menufile () {
wget -O"$WORLDSDIR/worlds.desktop" "https://raw.githubusercontent.com/Vencorr/Worlds-LinuxScript/master/worlds.desktop" 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 while read line
do do
line=${line/\${WORLDSDIR\}/$directory} line=${line/\${WORLDSDIR\}/$WORLDSDIR}
echo $line >> "$HOME/.local/share/applications/worlds.desktop" echo $line >> "$HOME/.local/share/applications/worlds.desktop"
done < "$WORLDSDIR/worlds.desktop" done < "$WORLDSDIR/worlds.desktop"
} }

View File

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