View Single Post
Old 2011-03-03, 16:56   #7
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

32·5·89 Posts
Default

If you're using Gnome Desktop, the following should be much simpler:

Note: for the following, my path to mprime is /home/math01/Mathwork/mprime/ and the script is stored in /home/math01/Mathwork/.

1. write a bash script using your favorite text editor
- - example:
Code:
#!/bin/bash

cd /home/math01/Mathwork/mprime
gnome-terminal -e "./mprime"
- - (saved in /home/math01/Mathwork/ as mprimear.sh)

2. test bash script by opening a terminal in Mathwork and trying:
Code:
bash mprimear.sh
3. open System>Preferences>Startup Applications
4. choose Add
Code:
Name: Mprime Autorun
Command: bash /home/math01/Mathwork/mprimear.sh
Comment: starts mprime at logon
5. choose Save
6. note that checkbox on left is checked
7. choose Close

You should be able to convert my paths to yours and add the mprime switches within the quotes.

This should now autorun in a terminal window whenever you log on.

Last fiddled with by EdH on 2011-03-03 at 17:23
EdH is offline   Reply With Quote