script revision 9a9619b5d03eea6bc201e03aa737dd83e3d8e273
#
# Author: Aaron Voisine <aaron@voisine.org>
# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net>
# System version: 3 for Panther, 4 for Tiger, 5 for Leopard
# On Leopard, X11.app is installed by default, and will be started
# automatically via launchd. On older systems, we need to start
# X11 ourself.
# For Panther and Tiger, start X11
# FIXME apparently this removes the xterm that starts with X
# from xinitrc but when is it really used? Should we modify
# the .xinitrc of the user without warning?
if [ "$?" != "0" -a ! -f "${HOME}/.xinitrc" ]; then
echo "rm -f \"\${HOME}/.xinitrc\"" > "${HOME}/.xinitrc"
fi
# Start X11 and get DISPLAY
# FIXME: Insecure tmp file usage. Why do we have to copy this to /tmp anyway?
sleep 1
done
# Warn the user about time-consuming generation of fontconfig caches.
else
# Leopard onwards...
# Warn the user about time-consuming generation of fontconfig caches.
fi
cd "$BASE"
# 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.