LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
add menu item
#9
Try this. In your home folder, make a new folder called mcserver, then inside that folder, make a file called mcexec, paste the following into it:

Code:
#!/bin/bash
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Save it, right click on it, Make file executable. Make sure the server file minecraft_server.jar is in the same folder.

Open text editor and place the following in it:

Code:
[Desktop Entry]
Name=Minecraft Server
Comment=Minecraft Server
Exec=x-terminal-emulator --geometry=95x25 -t "MC Server" -e "bash -c /home/user/mcserver/mcexec;bash"
Icon=/location/of/icon/file
Terminal=false
Type=Application
Categories=Game;

Save the file as minecraftserver.desktop and place it in /home/user/.local/share/applications/

It should show up under Menu, Games.
Reply


Messages In This Thread
add menu item - by davidwillis - 08-11-2014, 02:35 AM
Re: add menu item - by Valtam - 08-11-2014, 06:25 AM
Re: add menu item - by davidwillis - 08-11-2014, 12:29 PM
Re: add menu item - by Valtam - 08-11-2014, 12:30 PM
Re: add menu item - by paul59 - 08-11-2014, 01:33 PM
Re: add menu item - by davidwillis - 08-11-2014, 11:40 PM
Re: add menu item - by Kirkx - 08-12-2014, 07:56 AM
Re: add menu item - by davidwillis - 08-12-2014, 12:35 PM
Re: add menu item - by Valtam - 08-12-2014, 01:01 PM
Re: add menu item - by paul59 - 08-12-2014, 01:32 PM
Re: add menu item - by rijnsma - 08-12-2014, 10:08 PM
Re: add menu item - by davidwillis - 08-13-2014, 12:19 PM
Re: add menu item - by davidwillis - 08-13-2014, 12:34 PM
Re: add menu item - by paul59 - 08-13-2014, 01:07 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)