summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b50aac)
raw | patch | inline | side by side (parent: 2b50aac)
author | jiho-sf <jiho-sf@users.sourceforge.net> | |
Sun, 11 Nov 2007 11:42:39 +0000 (11:42 +0000) | ||
committer | jiho-sf <jiho-sf@users.sourceforge.net> | |
Sun, 11 Nov 2007 11:42:39 +0000 (11:42 +0000) |
packaging/macosx/Resources/script | patch | blob | history |
index 986cb530bd188d1884cd576f189ad23b3f4f123d..90e23718343b6e7c57bf959bded047ac5dcb0914 100755 (executable)
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