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
#7
I can help you with getting the terminal window open. Then you will still need to figure out all the java staff.

1) Save the following test script as the file named "test" (no quote marks, no extension) here:

Code:
/usr/scripts/

http://i.imgur.com/ICr4XWj.png

Copy the contents of the file "test" from here:

Code:
#!/bin/bash

bold=`tput bold`
normal=`tput sgr0`

echo "${bold}**********************"
echo "Test Script"
echo "**********************${normal}"
echo ""
echo ""
echo "Test script running ..."

echo ""
echo "Test script complete."
# sleep 5

2) Hit Alt+F2 and run the following command:

Code:
x-terminal-emulator --geometry=95x25 -t "My Custom Window Title" -e /usr/scripts/test

To prevent the terminal window from auto-closing after executing the script change the command as follows:

Code:
x-terminal-emulator --geometry=95x25 -t "My Custom Window Title" -e "bash -c /usr/scripts/test;bash"

I have to admit that I'm not sure if that's the smartest, most correct method to keep the terminal open, so let's wait for others to confirm this.

By modifying the command shown above you can set the size of the terminal window (--geometery=WxH) or add the title (it's optional). Later, when you have all the parameters tweaked to your liking you can save the command permanently in Alacarte (Main Menu). DO NOT place the check mark next to "Launch in Terminal", just ignore that box.
LL 2.4, Xubuntu 14.04.2, Debian 8, Manjaro
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: 6 Guest(s)