sure. first, open a terminal and type:
Code:
sudo cp /etc/init.d/rc.local minecraft
gksu gedit minecraft &
now change the script to refer to your specific application.. in the do_start change the log message to say it is starting minecraft, change the outer if statement and the line after the log line to the name of your application... something like this:
Code:
do_start() {
if [ -x /path/to/minecraft ]; then
[ "$VERBOSE" != no ] && log_begin_msg "Running local minecraft script (/path/to/minecraft)"
/path/to/minecraft
ES=$?
[ "$VERBOSE" != no ] && log_end_msg $ES
return $ES
fi
}
save the file as /etc/init.d/minecraft, and return to the terminal. finally prepare the script and add it to the system runlevel so it will call it on startup:
Code:
sudo chmod u+x /etc/init.d/minecraft
sudo ln -s /etc/init.d/minecraft /etc/rc2.d/S99minecraft