#!/bin/sh
#
# Portecle startup script

_prefer_jre=true
. /usr/share/java-utils/java-functions

if [ -f /etc/java/portecle.conf ] ; then
    . /etc/java/portecle.conf
fi
if [ -f ${XDG_CONFIG_HOME:-$HOME/.config}/portecle ] ; then
    . ${XDG_CONFIG_HOME:-$HOME/.config}/portecle
fi

MAIN_CLASS=net.sf.portecle.FPortecle
BASE_FLAGS="-splash:/usr/share/doc/portecle/doc/images/splash.png"
BASE_OPTIONS="-Dportecle.experimental=true"
BASE_JARS="bcprov bcpkix portecle"

set_jvm
set_classpath $BASE_JARS
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

run "$@"
