Added Desktop creation

Menu file!
This commit is contained in:
Nicholas George 2021-01-28 16:20:44 -06:00
parent 5aa6b62f3e
commit a0aba594d2
2 changed files with 20 additions and 0 deletions

View File

@ -158,6 +158,16 @@ launchscript () {
echo "source \"$WORLDSDIR/wlrdscmd\"" >> "$WORLDSDIR/wrldslinux"
touch "$WORLDSDIR/wlrdscmd"
rm "$HOME/Desktop/WorldsPlayer Win7.*"
menufile
}
menufile () {
wget -O"$WORLDSDIR/worlds.desktop" "https://raw.githubusercontent.com/Vencorr/Worlds-LinuxScript/master/worlds.desktop"
while read line
do
line=${line/\${WORLDSDIR\}/$directory}
echo $line >> "$HOME/.local/share/applications/worlds.desktop"
done < "$WORLDSDIR/worlds.desktop"
}
start

10
worlds.desktop Executable file
View File

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