Skip to content

Commit

Permalink
With USER_PLUGINS_DIR we may install plugins in our home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomb2 committed Jan 14, 2024
1 parent b47065c commit 012c5c6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/src/com/biglybt/platform/unix/startupScript
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
AUTOUPDATE_SCRIPT=1 # change to 0 if you don't want your changes overwritten on next SCRIPT_VERSION change
JAVA_PROGRAM_DIR="" # use full path to java bin dir, ex. "/usr/java/j2sdk1.4.2/bin/"
#PROGRAM_DIR="/home/username/apps/biglybt" # use full path to BiglyBT bin dir
#USER_PLUGINS_DIR="$HOME/.biglybt"
JAVA_PROPS=""

#######################################
Expand Down Expand Up @@ -103,7 +104,7 @@ runJavaOutput()
RESULT=`$JAVABIN \
-cp "${CLASSPATH}" \
"-Djava.library.path=${PROGRAM_DIR}" \
"-Dazureus.install.path=${PROGRAM_DIR}" \
"-Dazureus.install.path=${USER_PLUGINS_DIR}" \
"-Dazureus.script=$0" \
"-Dawt.useSystemAAFontSettings=gasp" \
${JAVA_PROPS} \
Expand Down Expand Up @@ -190,6 +191,11 @@ elif [ ! -f "${PROGRAM_DIR}/BiglyBT.jar" ]; then
exit 1
fi

# by default USER_PLUGINS_DIR is equal to PROGRAM DIR
if [ -z "$USER_PLUGINS_DIR" ]; then
USER_PLUGINS_DIR=${PROGRAM_DIR}
fi

OLDPATH=$PWD

# Change path here so we can do for loop on program dirs with spaces
Expand Down Expand Up @@ -229,7 +235,7 @@ echo "$MSG_LOADING"
$JAVABIN -Xmx256m \
-cp "${CLASSPATH}" \
"-Djava.library.path=${PROGRAM_DIR}" \
"-Dazureus.install.path=${PROGRAM_DIR}" \
"-Dazureus.install.path=${USER_PLUGINS_DIR}" \
"-Dazureus.script=$0" \
${JAVA_PROPS} \
${JAVA_ARGS} \
Expand Down

0 comments on commit 012c5c6

Please sign in to comment.