#!/bin/sh
XMIND_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/xmind"
if [ ! -d "$XMIND_CONFIG" ]; then
    install -d "$XMIND_CONFIG"
    cp -r -a /usr/libexec/xmind/configuration/* "$XMIND_CONFIG"
fi
exec /usr/libexec/xmind/XMind -configuration $XMIND_CONFIG -data $XMIND_CONFIG "$@"
