source: net-im/jitsi/files/jitsi @ 614fd62

Revision 614fd62, 1.2 KB checked in by Mario Fetka <mario.fetka@…>, 7 years ago (diff)

redigest and add

  • Property mode set to 100644
Line 
1#!/bin/bash
2
3# Change memory settings for 32-bit systems
4CLIENTARGS=""
5uname -m | grep -q 'i.86' && CLIENTARGS="-client -Xmx256m"
6
7# Standard paths
8javabin="$(java-config -J)"
9SCDIR="/usr/lib/jitsi"
10LIBPATH="$SCDIR/lib"
11
12# Configuration files
13FELIX_CONFIG="$LIBPATH/felix.client.run.properties"
14LOG_CONFIG="$LIBPATH/logging.properties"
15
16# Command assembly
17# Add libraries and sip-communicator bundles:
18CLASSPATH="$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"
19# Set the system properties:
20SYSPROPS=( -Djna.library.path="$LIBPATH/native" -Dfelix.config.properties="file:$FELIX_CONFIG" -Djava.util.logging.config.file="$LOG_CONFIG" )
21# The full command:
22COMMAND=( "$javabin" $CLIENTARGS -classpath "$CLASSPATH" "${SYSPROPS[@]}" net.java.sip.communicator.launcher.SIPCommunicator )
23
24# Also add "LIBPATH/native" to LD_LIBRARY_PATH.
25jarch="$( uname -m | sed 's/i.86/i386/; s/x86_64/amd64/' )"
26export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$(java-config -o)/jre/lib/$jarch:/usr/lib/jni:$LIBPATH/native"
27
28# Fix font anti-aliasing
29export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"
30
31# Run the command
32cd "$SCDIR"
33exec "${COMMAND[@]}" "$@"
Note: See TracBrowser for help on using the repository browser.