diff options
author | Nicolás Reynolds <fauno@parabola.nu> | 2013-05-07 22:24:50 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@parabola.nu> | 2013-05-07 22:24:50 -0300 |
commit | c2f0205881eddc0f4647fd82b1b77611ff81fc32 (patch) | |
tree | 33e1251493c2c0eceb017f4ecd7ccca88a0b667c /pcr/jitsi/jitsi.sh | |
parent | da483892765a9334d375a500f05a4431ee928e15 (diff) | |
parent | 63122e4078971bc5f0ef4f84e48c9838deb56082 (diff) | |
download | abslibre-c2f0205881eddc0f4647fd82b1b77611ff81fc32.tar.gz abslibre-c2f0205881eddc0f4647fd82b1b77611ff81fc32.tar.bz2 abslibre-c2f0205881eddc0f4647fd82b1b77611ff81fc32.zip |
Merge branch 'master' of vparabola:abslibre
Diffstat (limited to 'pcr/jitsi/jitsi.sh')
-rw-r--r-- | pcr/jitsi/jitsi.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pcr/jitsi/jitsi.sh b/pcr/jitsi/jitsi.sh new file mode 100644 index 000000000..6e53cdbf5 --- /dev/null +++ b/pcr/jitsi/jitsi.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +CLIENTARGS="" +uname -m | grep i686 && 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) + +export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIBPATH/native" + +cd "$SCDIR" + +exec "${COMMAND[@]}" "$@" |