Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

X11 in Leopard

I'm not sure if anyone is having this problem, but I cannot open the Gimp and Inkscape anymore after upgrading to Leopard. Any suggestions?

MacBook Pro, Mac OS X (10.5), HOLY CRAP I HAVE LEOPARD!!!!!

Posted on Oct 26, 2007 9:45 AM

Reply
123 replies

Oct 29, 2007 12:21 PM in response to Mac-oholic

I was able to get Inkscape working in Leopard by editing the "/Applications/Inkscape.app/Contents/Resources/script" file. I commented out all the lines except those listed below. I hope this helps.

CWD="`dirname \"$0\"`"
test -f ~/.inkscape/.fccache-new || exit 12
BASE="`echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//'`"
cd "$BASE"
exec "$CWD/bin/inkscape" "$@"

Oct 29, 2007 6:05 PM in response to m1k83l

m1k83l wrote:
I was able to get Inkscape working in Leopard by editing the "/Applications/Inkscape.app/Contents/Resources/script" file. I commented out all the lines except those listed below. I hope this helps.

CWD="`dirname \"$0\"`"
test -f ~/.inkscape/.fccache-new || exit 12
BASE="`echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//'`"
cd "$BASE"
exec "$CWD/bin/inkscape" "$@"



Hey m1k83l,

Thanks for the recommendation. But the Inkscape group released a newer Mac version on Friday.

It works BUT THE TEXT IN THE MENUS AND TOOL BARS ARE NOT RECOGNIZED! They just show up as blank boxes. There is a temporary workaround. If I open the app from the .dmg it came in it will open correctly. I find this a little annoying because I cannot edit the app to add my custom palettes (the Contents folder and everything inside it is read only and I can't fix it for some reason).

I don't know if this is an X11 problem or a problem on the inkscape side. If anyone has any recommendations I would greatly appreciate it.

-Jonathan

Oct 29, 2007 10:16 PM in response to Mac-oholic

Hy M Byer,
I installed Leopard on Oct 26.
I pllayed with X11 specially with rdesktop from MacPorts.
It was not really fast. I thought X11 from Apple was outdated.
I searched for a newer X11. found XFree but then I found X.Org.
I installed X.org X11R7.2 (20070718).pkg.zip from http://people.freedesktop.org/~bbyer/.
Now when I try to launch anything (Xterm, rdesktop, etc.) I get:
X connection to /tmp/launch-MtQPdL/:0 broken (explicit kill or server shutdown).
The X11 window appears and disappear quickly.

Have I done something wrong ?
How could I revert to the X11 from Leopard DVD ?

The only tweak I did was the Xterm -ls or something like that so that X11 apps launch directly when launched from the terminal (without having to launch X11.app.

Thanks for your help.

Oct 30, 2007 4:31 AM in response to frankpod

frankpod wrote:
Hy M Byer,
I installed Leopard on Oct 26.
I pllayed with X11 specially with rdesktop from MacPorts.
It was not really fast. I thought X11 from Apple was outdated.
I searched for a newer X11. found XFree but then I found X.Org.
I installed X.org X11R7.2 (20070718).pkg.zip from http://people.freedesktop.org/~bbyer/.
Now when I try to launch anything (Xterm, rdesktop, etc.) I get:
X connection to /tmp/launch-MtQPdL/:0 broken (explicit kill or server shutdown).
The X11 window appears and disappear quickly.

Have I done something wrong ?
How could I revert to the X11 from Leopard DVD ?


I'm a bit confused as to why you did this. That file you installed was an experimental build of the X.org server from Leopard for Tiger users -- among other things, it's lacking launchd support, as that requires features not present in Tiger.

Try deleting /Applications/Utilities/X11.app, all of /usr/X11, and reinstall X11 using the Optional Packages installer off of your Leopard DVD.

Oct 30, 2007 7:49 AM in response to Jacques Foucry

I reply to myself, and may be it could help somebody.

I reinstall X11 form the original leopard image. All the package X11User.pkg (hidden in /Volumes/Mac OS X Install DVD/System/Installation/Packages), X11Documentation.pkg and X11SDK.pkg from /Volumes/Mac OS X Install DVD/Optional Installs/Xcode Tools/Packages.

After a reboot (I don't know why) the tab key work for me.

Hope it could help.

Jacques

Oct 30, 2007 2:53 PM in response to sdbale

Same problem - not sure if it's related to Leopard's "don't use setenv DISPLAY" restriction or not. I could do line plots, but contour plots or anything in color would crash to CLI.

I poked around a bit, but never found a pleasing solution, so I reverted to Tiger. We'll hold off updating the machines in our group until Apple fixes X11 in Leopard.

Oct 30, 2007 2:54 PM in response to dnidever

I'll second that. This is something I use everyday. I telecommute and use X11 to connect to our UNIX servers and remote display applications. I also do a LOT of copying and pasting, which now no longer works in Leopard's new X11. I've also turned on "Emulate 3 Button Mouse", but it makes no difference. It's like Paste-ing is an unsupported operation now (it's always greyed-out in the menu). Copying will indeed copy the text to the pasteboard; however, there is no way to paste anymore. The normal UNIX method of pasting (i.e., clicking the middle mouse button or Option+click on the Mac) does not work.

Oct 30, 2007 9:03 PM in response to Mac-oholic

For those curious, I have made it so no X11 icons show up in the dock when you start a program that needs X11. Normally when you start GIMP you will see two icons appear in the dock. This isn't normal, but I think they know about it. It is normal for two X11 processes to begin. I don't know why, but it was this way in Tiger as well. Of course you would have to either run 'top' or look in your activity monitor to see them in 10.4.

The application in /Applications/Utilities/X11.app, should really be called xterm, and you should think of it as such, as X11 no longer lives here. I don't know why they kept the name the same, but changed the function, and that is just confusing. I would prefer the development team change the name to xterm so I don't get confused by changing the plist file for xterm rather than x11. Anyway, stepping off my soapbox.

Now to get rid of those pesky, imho, X11 icons in the dock.
1) Make sure you have removed any DISPLAY settings from your .bashrc, .profile, or whatever. This is all taken care of automatically. Not perfectly yet, but having two locations where this is set will surely break your apps.

2) You need to modify the contents of the 'real' X11.app. Go to /usr/X11/X11.app/Contents/ make the following change to Info.plist file (note you will need to use sudo vi, or sudo emacs, or sudo nano, or whatever as this file is owned by root). Add the following lines between <dict> and </dict>:

<key>LSUIElement</key>
<true/>
<key>NSUIElement</key>
<string>1</string>

3) Now cd to /usr/X11/ and touch X11.app with this command:

touch X11.app


That should be it. Now when you start up Inkscape, gimp, xeyes, or whatever, you will not get the x11 icon in the dock. Two instances will show up in your activity monitor, but I am pretty sure that is normal. This will not fix the fact that GIMP still crashes and works very slow.

That is all. I hope you all like.
-mike

Message was edited by: Michael

Message was edited by: Michael

Oct 30, 2007 9:23 PM in response to m1k83l

m1k83l wrote:
I was able to get Inkscape working in Leopard by editing the "/Applications/Inkscape.app/Contents/Resources/script" file. I commented out all the lines except those listed below. I hope this helps.

CWD="`dirname \"$0\"`"
test -f ~/.inkscape/.fccache-new || exit 12
BASE="`echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//'`"
cd "$BASE"
exec "$CWD/bin/inkscape" "$@"


Likewise with GIMP, even the new one. I was able to get it to work by modifying the similar file in GIMP's hierarchy. I modified it in the same way, but I also left another line that set a temp directory.

TMP=/tmp/$UID/TemporaryItems

Still the new gimp works terribly slow, and crashes often, but I am not sure that is apple's fault as I had an older version on my mac before. I am going to try the old version again, and modify the script file the same way.

-mike

Oct 31, 2007 7:19 AM in response to Mac-oholic

More problems here too with X11 and Leopard.

a. All my defined applications from the pull down menu are gone!
b. Even if I remove the Xterm from the plist in Preferences it get's added in.
c. Things that used to start in the pull down no longer work.
d. If I do as suggested, and not start X11, when I execute (vncviewer) X11
never auto-starts and I get the message the display could not be opened.

Not happy!

-Bruce-

X11 in Leopard

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.