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