summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorJiHO <jiho-sf@users.sourceforge.net>2007-11-11 11:42:39 +0000
committerjiho-sf <jiho-sf@users.sourceforge.net>2007-11-11 11:42:39 +0000
commitdeb924514baa447bd98bc88916412bb16f96f6ad (patch)
treee5328b63d7077d3e4f00f8a10ceed4576cc5bdb7 /packaging
parent* Dropped geom.c and libwpg from translatable file list (diff)
downloadinkscape-deb924514baa447bd98bc88916412bb16f96f6ad.tar.gz
inkscape-deb924514baa447bd98bc88916412bb16f96f6ad.zip
modified fix for leopard according to comment on bug 1821094
(bzr r4059)
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/Resources/script14
1 files changed, 7 insertions, 7 deletions
diff --git a/packaging/macosx/Resources/script b/packaging/macosx/Resources/script
index 986cb530b..90e237183 100755
--- a/packaging/macosx/Resources/script
+++ b/packaging/macosx/Resources/script
@@ -9,15 +9,15 @@ CWD="`dirname \"$0\"`"
VERSION=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d'.'`
-# 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 ~/.xinitrc ]; then
- echo "rm -f ~/.xinitrc" > ~/.xinitrc
- sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
-fi
-
# 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 ~/.xinitrc ]; then
+ echo "rm -f ~/.xinitrc" > ~/.xinitrc
+ sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
+ fi
+
# Start X11 and get DISPLAY
cp -f "$CWD/bin/getdisplay.sh" /tmp/
rm -f /tmp/display.$UID