File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
core/src/com/biglybt/platform/unix Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 44AUTOUPDATE_SCRIPT=1 # change to 0 if you don't want your changes overwritten on next SCRIPT_VERSION change
55JAVA_PROGRAM_DIR=" " # use full path to java bin dir, ex. "/usr/java/j2sdk1.4.2/bin/"
66# PROGRAM_DIR="/home/username/apps/biglybt" # use full path to BiglyBT bin dir
7+ # INSTALL_DIR="$HOME/.biglybt"
78JAVA_PROPS=" -Djava.net.preferIPv4Stack=true"
89
910# ######################################
@@ -99,7 +100,7 @@ runJavaOutput()
99100 RESULT=` ${JAVA_PROGRAM_DIR} java \
100101 -cp " ${CLASSPATH} " \
101102 " -Djava.library.path=${PROGRAM_DIR} " \
102- " -Dazureus.install.path=${PROGRAM_DIR } " \
103+ " -Dazureus.install.path=${INSTALL_DIR } " \
103104 " -Dazureus.script=$0 " \
104105 " -Dawt.useSystemAAFontSettings=gasp" \
105106 ${JAVA_PROPS} \
@@ -179,6 +180,11 @@ else
179180 fi
180181fi
181182
183+ # by default INSTALL DIR is equal to PROGRAM DIR
184+ if [ -z " $INSTALL_DIR " ]; then
185+ INSTALL_DIR=${PROGRAM_DIR}
186+ fi
187+
182188OLDPATH=$PWD
183189
184190# Change path here so we can do for loop on program dirs with spaces
@@ -218,7 +224,7 @@ echo $MSG_LOADING
218224${JAVA_PROGRAM_DIR} java -Xmx256m \
219225 -cp " ${CLASSPATH} " \
220226 " -Djava.library.path=${PROGRAM_DIR} " \
221- " -Dazureus.install.path=${PROGRAM_DIR } " \
227+ " -Dazureus.install.path=${INSTALL_DIR } " \
222228 " -Dazureus.script=$0 " \
223229 ${JAVA_PROPS} \
224230 ${JAVA_ARGS} \
You can’t perform that action at this time.
0 commit comments