On Sat, Nov 28, 2009 at 7:12 PM, Desmond Armstrong < [email protected]> wrote:
> #!/bin/bash > >> >> APP_HOME=/home/jjj/Software/ >> >> >>> >>> >> cd $APP_HOME >> java -Xmx256m -Xms64m -jar TreeForm.jar >> >> #-- END -- >> >> This way your application would have working directory of what you set and >> it would find images subdir in it. >> > To ease maintenance I use to place such start scripts in the same directory as the application. Then the script can query for APP_HOME by itself and the location is not hardcoded. E.g. APP_HOME=$(dirname $0) cd $APP_HOME Enjoy, Zoltan
_______________________________________________ gnome-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-list
