#!/bin/sh
#This wrapper launches Scriptel ScripTouch Toolbox.
JAVA=/usr/share/scriptouch-toolbox/runtime/bin/java
X11RECLASS=/usr/share/scriptouch-toolbox/x11-jframe-reclass
JAVA_ARGS="-Xms64m -Xmx512m"

$JAVA $JAVA_ARGS -Dlibrary.licenselib.directory="/usr/share/scriptouch-toolbox/native" -Dlibrary.proscript.directory="/usr/share/scriptouch-toolbox/native" -m com.scriptel.toolbox/com.scriptel.toolbox.ToolboxController "$@"&
#This is to fix the X11 class problem with Java and the Unity DE.
$X11RECLASS com-scriptel-toolbox-ToolboxController "ScripTouch Toolbox" $!