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