diff options
Diffstat (limited to '~emulatorman/jitsi-stable/jitsi.sh')
-rw-r--r-- | ~emulatorman/jitsi-stable/jitsi.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/~emulatorman/jitsi-stable/jitsi.sh b/~emulatorman/jitsi-stable/jitsi.sh new file mode 100644 index 000000000..6ebd6131f --- /dev/null +++ b/~emulatorman/jitsi-stable/jitsi.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Additionnal JVM arguments +CLIENTARGS="" +[[ $(uname -m) =~ i?86 ]] && CLIENTARGS="-client -Xmx256m" + +SCDIR=/usr/lib/jitsi +LIBPATH=$SCDIR/lib +CLASSPATH=$LIBPATH/jdic_stub.jar:$LIBPATH/jdic-all.jar:$LIBPATH/felix.jar:$LIBPATH/bcprovider.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar +FELIX_CONFIG=$LIBPATH/felix.client.run.properties +LOG_CONFIG=$LIBPATH/logging.properties +COMMAND="$JAVA_HOME/bin/java $CLIENTARGS -classpath $CLASSPATH -Djna.library.path=$LIBPATH/native -Dfelix.config.properties=file:$FELIX_CONFIG -Djava.util.logging.config.file=$LOG_CONFIG net.java.sip.communicator.launcher.SIPCommunicator" + +# set add LIBPATH to LD_LIBRARY_PATH for any sc natives (e.g. jmf .so's) +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBPATH/native + +cd $SCDIR + +exec $COMMAND $* |