X11 in Leopard
MacBook Pro, Mac OS X (10.5), HOLY CRAP I HAVE LEOPARD!!!!!
MacBook Pro, Mac OS X (10.5), HOLY CRAP I HAVE LEOPARD!!!!!
R. Toby Richards wrote:
Hi. I have similar experiences as many of you: Gimp.app opens, but the cursor sometimes moves slowly, and it crashes if I try to stroke on the canvas.
Inkscape works if I open X11 first, which doesn't bother me. My question is this: are all these GIMP >problems related to Gimp.app only, or have people also been having problems with the MacPorts >variant?
I've been thinking about installing MacPorts. The thing is that this is my first Mac (I bought it the same day Leopard came out). Until that day, I had never even once used a Mac before (ergo Leopard is the only Apple OS that I've ever used). I am afraid that MacPorts will make my Mac somehow "dirty" in that now I'll start installing junk to other locations besides /Applications. As a network administrator, I have a fairly good understanding of the Unix directory structure, so going from everything nicely tucked into /Applications back to /bin and /usr/bin and /usr/local/bin not to mention all of the .../lib and other folders seems like a step backwards.
sudo cp /usr/X11/bin/Xquartz /usr/X11/bin/Xquartz_backup
curl -LO http://people.freedesktop.org/~bbyer/x11app/xorg-server-1.2a8/Xquartz-1.2a8.bz2
bunzip2 Xquartz-1.2a8.bz2
sudo install -b Xquartz-1.2a8 /usr/X11/bin/Xquartz
cd /tmp
curl -LO http://people.freedesktop.org/~bbyer/x11app/libX11.6.dylib.bz2
bunzip2 libX11.6.dylib.bz2
sudo install -b libX11.6.dylib /usr/X11/lib
nano /Applications/Gimp.app/Contents/Resources/init
#!/bin/sh
#
# Author: Aaron Voisine < aaron@voisine.org >
CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
#ps -wx -ocommand | grep -e '[X]11' > /dev/null
#if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
# defaults write com.apple.x11 wm clickthrough -bool true
# echo "rm -f ~/.xinitrc" > ~/.xinitrc
# sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
#fi
#open -a X11 || open -a XDarwin
export "FONTCONFIG_PATH=$CWD/etc/fonts"
exec "$CWD/bin/cache-fonts"
nano /Applications/Gimp.app/Contents/Resources/openDoc
but this makes it nearly impossible to post the text as it should look in these Unix executables.
your code here
#!/bin/sh
#
# Author: Aaron Voisine <aaron@voisine.org>
CWD="`(cd "`dirname \"$0\"`"; echo $PWD)`"
#ps -wx -ocommand | grep -e '[X]11' > /dev/null
#if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then
#defaults write com.apple.x11 wmclickthrough -bool true
#echo "rm -f ~/.xinitrc" > ~/.xinitrc
#sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc
#fi
#open -a X11 || open -a XDarwin
export "FONTCONFIG_PATH=$CWD/etc/fonts"
exec "$CWD/bin/cache-fonts"
#!/bin/sh
#
# Author: Aaron Voisine <aaron@voisine.org>
CWD="`dirname "$0"`"
TMP=/tmp/$UID/TemporaryItems
#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
#mkdir -p $TMP
#cp -f "$CWD/bin/getdisplay.sh" $TMP
#rm -f $TMP/display
#open-x11 $TMP/getdisplay.sh ||
#open -a XDarwin $TMP/getdisplay.sh ||
#echo "😮" > $TMP/display
#while [ "$?" == "0" -a ! -f $TMP/display ]; do sleep 1; done
#export "DISPLAY=`cat $TMP/display`"
#ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
cd ~/
exec "$CWD/bin/gimp" "$@"
#!/bin/sh
#
# Author: Aaron Voisine <aaron@voisine.org>
#export "DISPLAY=`cat /tmp/$UID/TemporaryItems/display`"
exec "`dirname "$0"`/bin/gimp-remote" "$@"
Abhi111 wrote:
Quoting teh X11 maintainer, bbyer ( http://discussions.apple.com/message.jspa?messageID=5769017#5769017):
I'd like to take this opportunity and publicly thank Michael for all of the time he's put in to writing out detailed directions for fixing the incompatibilities people have run into with Leopard's X11.
End quote.
I would like to echo those sentiments. Thanks Michael! I didn't realise that GIMP wouldn't work properly. Within minutes I was able to replace Xquartz and x11lib, and used nano to fix the Unix executables. This is largely thanks to your detailed and clear instructions. 🙂
X11 in Leopard