#!/bin/bash # # Author: Aaron Voisine # Inkscape Modifications: Michael Wybrow # Inkscape Modifications: ~suv #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" "$@"