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+ # USER_DIR="$HOME/.biglybt"
78JAVA_PROPS=" "
89
910# ######################################
@@ -107,7 +108,7 @@ runJavaOutput()
107108 RESULT=` $JAVABIN \
108109 -cp " ${CLASSPATH} " \
109110 " -Djava.library.path=${PROGRAM_DIR} " \
110- " -Dazureus.install.path=${PROGRAM_DIR } " \
111+ " -Dazureus.install.path=${USER_DIR } " \
111112 " -Dazureus.script=$0 " \
112113 " -Dawt.useSystemAAFontSettings=gasp" \
113114 ${JAVA_PROPS} \
@@ -196,6 +197,11 @@ elif [ ! -f "${PROGRAM_DIR}/BiglyBT.jar" ]; then
196197 exit 1
197198fi
198199
200+ # by default USER_DIR is equal to PROGRAM DIR
201+ if [ -z " $USER_DIR " ]; then
202+ USER_DIR=${PROGRAM_DIR}
203+ fi
204+
199205OLDPATH=$PWD
200206
201207# Change path here so we can do for loop on program dirs with spaces
@@ -235,7 +241,7 @@ echo "$MSG_LOADING"
235241$JAVABIN -Xmx256m \
236242 -cp " ${CLASSPATH} " \
237243 " -Djava.library.path=${PROGRAM_DIR} " \
238- " -Dazureus.install.path=${PROGRAM_DIR } " \
244+ " -Dazureus.install.path=${USER_DIR } " \
239245 " -Dazureus.script=$0 " \
240246 ${JAVA_PROPS} \
241247 ${JAVA_ARGS} \
You can’t perform that action at this time.
0 commit comments