#!/bin/bash

[ -z "${DRIZZLE_NAME}" ] && DRIZZLE_NAME="Drizzle"

CONFIGDIR="${HOME}/.config/drizzle"
mkdir -p "${CONFIGDIR}"
cd "${CONFIGDIR}"

exec java -Xmx800m \
-DDrizzle.IsLauncher=false \
-Dcom.apple.mrj.application.apple.menu.about.name="${DRIZZLE_NAME}" \
-Xdock:name="${DRIZZLE_NAME}" \
-splash: \
-jar "/opt/local/share/java/drizzle.jar" "$@"
