Fixed the desktop file function
This commit is contained in:
parent
a0aba594d2
commit
eb94666e2c
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user