Re: gnome-list Digest, Vol 67, Issue 12 item 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 28, 2009 at 7:12 PM, Desmond Armstrong <desmond.armstrong@xxxxxxxxx> 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
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux