updated on Sat Jan 7 16:16:25 UTC 2012
[aur-mirror.git] / jitsi-stable / jitsi.sh
blob6ebd6131f9459168def1b205a16ab4bb8f7cec38
1 #!/bin/bash
3 # Additionnal JVM arguments
4 CLIENTARGS=""
5 [[ $(uname -m) =~ i?86 ]] && CLIENTARGS="-client -Xmx256m"
7 SCDIR=/usr/lib/jitsi
8 LIBPATH=$SCDIR/lib
9 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
10 FELIX_CONFIG=$LIBPATH/felix.client.run.properties
11 LOG_CONFIG=$LIBPATH/logging.properties
12 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"
14 # set add LIBPATH to LD_LIBRARY_PATH for any sc natives (e.g. jmf .so's)
15 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBPATH/native
17 cd $SCDIR
19 exec $COMMAND $*