Added Desktop creation
Menu file!
This commit is contained in:
parent
5aa6b62f3e
commit
a0aba594d2
|
@ -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
10
worlds.desktop
Executable 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
|
Loading…
Reference in New Issue
Block a user