Re: gnome-list Digest, Vol 67, Issue 12 item 1
- From: Zoltan Sekeres <zsekeres gmail com>
- To: Desmond Armstrong <desmond armstrong gmail com>
- Cc: gnome-list gnome org
- Subject: Re: gnome-list Digest, Vol 67, Issue 12 item 1
- Date: Sat, 28 Nov 2009 21:43:03 +0100
On Sat, Nov 28, 2009 at 7:12 PM, Desmond Armstrong
<desmond armstrong gmail com> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]