diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2014-08-20 01:44:01 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2014-08-20 01:44:01 +0000 |
| commit | c1f2cee561acdbd6963c5bf9300953ef40140e8e (patch) | |
| tree | cb772442b269c095120564b5196cb692089ce7d8 /packaging/macosx/Resources/script | |
| parent | update custom fonts.conf to latest upstream changes (diff) | |
| download | inkscape-c1f2cee561acdbd6963c5bf9300953ef40140e8e.tar.gz inkscape-c1f2cee561acdbd6963c5bf9300953ef40140e8e.zip | |
remove support for X11 on Panther and Tiger (Leopard and later use launchd)
(bzr r13506.1.11)
Diffstat (limited to 'packaging/macosx/Resources/script')
| -rwxr-xr-x | packaging/macosx/Resources/script | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/packaging/macosx/Resources/script b/packaging/macosx/Resources/script index 62dcafdf5..b6464de96 100755 --- a/packaging/macosx/Resources/script +++ b/packaging/macosx/Resources/script @@ -8,37 +8,6 @@ CWD=`dirname "$0"` # System version: 3 for Panther, 4 for Tiger, 5 for Leopard export VERSION=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d'.'` -# 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 -if [[ $VERSION -le 4 ]]; then - # 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? - ps -wx -ocommand | grep -e '[X]11' > /dev/null - if [ "$?" != "0" -a ! -f "${HOME}/.xinitrc" ]; then - echo "rm -f \"\${HOME}/.xinitrc\"" > "${HOME}/.xinitrc" - sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> "${HOME}/.xinitrc" - fi - - # Start X11 and get DISPLAY - # FIXME: Insecure tmp file usage. Why do we have to copy this to /tmp anyway? - cp -f "$CWD/bin/getdisplay.sh" /tmp/ - rm -f /tmp/display.$UID - open-x11 /tmp/getdisplay.sh || \ - open -a XDarwin /tmp/getdisplay.sh || \ - echo ":0" > /tmp/display.$UID - - while [ "$?" == "0" -a ! -f /tmp/display.$UID ]; do - sleep 1 - done - export DISPLAY=`cat /tmp/display.$UID` - - ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11 -fi - # Warn the user about time-consuming generation of fontconfig caches. test -f "${HOME}/.inkscape-etc/.fccache-new" || exit 12 |
