#!/bin/sh

# set the correct language otherwise
# it doesn't start with launchservicesd
export LANG=$(defaults read -g AppleLanguages | \
                  sed -n 2p | \
                  sed '/"/!d;s/["[:space:]]//g;s/-/_/;s/,//').UTF-8
export XDG_DATA_DIRS=__PREFIX__/share:$XDG_DATA_DIRS
exec __PYTHON_BINDIR__/zim $@
