script revision 37f29880ec9df432524d92aba7e3b81e4c21506d
#!/bin/bash
#
# Author: Aaron Voisine <aaron@voisine.org>
# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net>
# Inkscape Modifications: ~suv <suv-sf@users.sourceforge.net>
#export _DEBUG=true
get_env_current ()
{
env | awk -F= '/[a-zA-Z_][a-zA-Z_0-9]*=/ {if (!system("[ -n \"${" $1 "+y}\" ]")) print $1 }' | sort | uniq
}
[ -z "$_env_orig" ] && export _env_orig="$(get_env_current)"
CWD="$(cd "$(dirname "$0")" && pwd)"
source "${CWD}/xdg_setup.sh"
source "${CWD}/alert_fccache.sh"
# TODO examine whether it would be wisest to move the code from inkscape shell
# script and getdisplay.sh to here and only keep the real binary in bin. This
# may make things easier on Leopard and may also help using Inkscape on the
# command line.
#
# See related FIXME in bin/inkscape for requirements to merge the two scripts.
exec "$CWD/bin/inkscape" "$@"