slackbuilds_ponce/network/freerapid/frd.sh
Edinaldo P. Silva 148ca20de4 network/freerapid: Fix compatibilities with new JDK.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2015-08-23 09:48:46 +07:00

26 lines
925 B
Bash

#!/bin/sh
# default option.
if [ -x "`which java`" ]; then
cd /usr/share/freerapid-0.9.4/ && exec java -jar frd.jar "$@"
fi
# less CPU usage.
#if [ -x "`which java`" ]; then
# cd /usr/share/freerapid-0.9.4/ && exec java -Dsun.java2d.opengl=true -jar frd.jar "$@"
#fi
# needed for some distros.
#if [ -x "`which java`" ]; then
# cd /usr/share/freerapid-0.9.4/ && exec java -Djava.net.preferIPv4Stack=true -Xmx160m -jar frd.jar "$@"
#fi
# better fonts appearance (smooth fonts).
#if [ -x "`which java`" ]; then
# cd /usr/share/freerapid-0.9.4/ && exec java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Djava.net.preferIPv4Stack=true -Xmx160m -jar frd.jar "$@"
#fi
# all options combined.
#if [ -x "`which java`" ]; then
# cd /usr/share/freerapid-0.9.4/ && exec java -Dsun.java2d.opengl=true -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Djava.net.preferIPv4Stack=true -Xmx160m -jar frd.jar "$@"
#fi