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

Nov 1, 2007 4:54 AM 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" "$@"


Thanks for the tip m1k83l! This worked great for me.

Inkscape seems to work fine (including all "menus and text"), though it seems to run slow.

The new Gimp.app release candidate works for me too, but like another user, trying to use a paint brush on an image crashes the program!

Nov 1, 2007 10:39 AM in response to Mac-oholic

_OK, to summarize where I'm at now: I got the Gimp and Inkscape to open in Leopard by downloading the newest version. Inkscape will open but the text in the Menu and tool bars is not recognized; it opens with little squares in their place._

*I did some digging and I fixed the text problem in the Menu and tool bars*

open "pre_gtkrc" and "gtkrc" +files fond in this folder:+
/Applications/Inkscape.app/Contents/Resources/themes/Clearlooks-Quicksilver-OSX/ gtk-2.0

+Hit "Command f" and search for this:+ gtk-font-name
+you should find this nice little entry:+

*gtk-font-name="Lucida Grande 12"*

+Change the "Lucida Grande 12" to another font, like so:+

gtk-font-name="Arial"

+And then it will work just fine.+

Make sure you change it in both files just to be safe. If you have not opened Inkscape for the first time yet then you might not have a "gtkrc" file, but the "pre_gtkrc" file will still be there.

By changing these files you can customize the entire look of Inkscape.

Nov 1, 2007 12:42 PM in response to Mac-oholic

Interestingly I have very few of the issues mentioned. And actually Apple has given us EXACTLY what I have been asking them for (for years). They do have a way to go to smooth out the bumps but the goal is sound. They are going for seamless launch of X11 apps so there is no need to distinguish them from native. I hope they can achieve that with Windoze as well. Presumably it will require a commercial "plugin" but again Windoze apps would "just work" like with Crossover.

I had to modify my ~/.MacOSX/environment.plist because I had put a DISPLAY environment variable in there and that is now done for you. Other than that I find that Gimp.app works fine as long as you have the latest version and I don't have slowness or crashing. The new X11 is based on X.org which is what I have been putting in my builds for years via fink. I do not have the double Dock Icon problem either (that is a user education issue). I think it's people failing to undo all the hacks they previously did to get X11 working that is causing most of the complaints. The new X11 even asks you if you want your old .xinitrc moved out of the way.

All in all I applaud Apple for finally listening.

Nov 1, 2007 10:28 PM in response to Mark Moorcroft

Mark Moorcroft wrote:
I had to modify my ~/.MacOSX/environment.plist because I had put a DISPLAY environment variable in there and that is now done for you. Other than that I find that Gimp.app works fine as long as you have the latest version and I don't have slowness or crashing. The new X11 is based on X.org which is what I have been putting in my builds for years via fink. I do not have the double Dock Icon problem either (that is a user education issue). I think it's people failing to undo all the hacks they previously did to get X11 working that is causing most of the complaints.


I have still not gotten Gimp.app to work. I have the latest version, and I even did a complete fresh install to fix it (Gimp was the first install I did so I wouldn't create a conflict). Even with that, with none of my hacks remaining, and there were a few, I still can not get it to work. Is there a chance you changed something to make it work? Wait, I installed the developer package, did you? Perhaps that is the problem?

Thanks,
mike

Nov 2, 2007 11:05 AM in response to Mac-oholic

I think I have an answer (though it might not be the best answer).

I have gotten GIMP to work with Tiger's X11, and am able to launch it without the "double X icon" in the finder, or the bouncing X icon, and without the cache-font error on startup.

Basically, I hacked together an Applescript that will check if X11 is running, if it is not it will launch it, then it will launch gimp directly afterwards. This is done by not calling the .app, but rather by invoking the files directly.

If anyone is interested, the relevant code for the applescript is here:
http://www.godigg.com/cms/node/4

Looks like it might be a fix until the GIMP folks get us up and running again, or apple improves their X11 a bit more...

Nov 2, 2007 11:42 AM in response to Mac-oholic

Michael Thorn wrote:
I just tried the newest version of GIMP and it starts up, (btw very fast), but it runs extremely slow. That is the pointer follows my input very slowly. Also if I try to use the paintbrush or several other tools (not all of them) GIMP just crashes without any warning or result.


I have got Inkscape working great (and its appearance modified just the way I like it 🙂 ).

Now I've switched my focus to the Gimp. I am having he exact same problem that Michael has with the lag between the curser and tool, and it also crashes when I use the paintbrush. Does anyone know if it is a problem with the Gimp or X11?

Nov 2, 2007 11:48 AM in response to Michael Thorn

Michael Thorn wrote:
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


Hey Mike,

I have tried to alter the older version of the Gimp in a similar way suggested with Inkscape. I can't seem to get it to work. If you have the time would you post the script change you made and tell me which of the files you altered?

Thanks!

-Jonathan

Nov 3, 2007 8:49 AM in response to Mac-oholic

Sorry I didn't write back.

The modifications I made to GIMP didn't actually make it work any better, it only made it so the silly xterm windows wouldn't keep popping up. Gimp still crashed and reacted sluggishly, but there may be a fix within the day. I have yet to make the Gimp 2.2.11 work. It always crashes on startup.

The files I modified in GIMP are the following (keep in mind this is the newest version, and it didn't make it work any better, your milage may vary.):

/Applications/Gimp.app/Contents/Resources/init
I commented out (put # at the start of the line) the line that starts with "ps -wx ..." (so it looks like: #ps -wx ....
I continued to comment out each line after this one up to and including the line that begins with "open -a X11 ..." That should leave a total of three lines that are not commented out, one that begins "CWD...", another "export...", and another "exec...".

/Applications/Gimp.app/Contents/Resources/script
In this file I commented out the same way everything AFTER the line that starts "TMP=..." and BEFORE the line that starts "cd ~/" This should leave 4 lines uncommented.

This keeps gimp from starting new xterm windows, but you may still get at least one starting, as it is called by launchd, I think. To make that stop happening is yet another issue. I have not figured out where this one is being called from.

Anyway, I will let you know of any changes I find that work.
-mike

Nov 3, 2007 8:55 AM in response to Michael Thorn

Oh btw, if you are interested some think gimp 2.2.11 and 2.4 are crashing because of a bug (or dropped patch) in the leopard version of X11 concerning gtk+. I have also seen pango errors, so from what I have read it may all be related. What the X11 team has done in leopard is no small feat. So a few problems, that will be worked out no doubt, are expected. Just be patient.

Nov 4, 2007 5:13 PM in response to Abhi111

Abhi111 wrote:
This seems completely broken. X11.app doesn't launch and GIMP, Gretl and Inkscape have stopped working. A faulty "upgrade" like this creates real hassles for many people.


Not in the least bit completely broken! I have Inkscape working perfectly with less than a 1 minute hack (BTW, the hack made it more like the linux version of inkscape by removing added code that was required for Tiger's version of X). Gimp is still broken, but it is in the works. Definitely has its bugs, but a huge improvement imho. There is no reason for X11.app not to work on a clean install. If your X11.app doesn't launch most likely something happened in your install (I have heard this may occur if you upgrade and don't remove all the 'hacks' you may have added). Most often the problem is you have set the $DISPLAY variable somewhere (there was even one user that had it set in two locations... lots of confusion ensued). After removing these hacks it is likely X11.app will work fine. I did an upgrade to start, and while x11.app worked fine, many others didn't. I tried a new install and most apps worked except for a few that need gtk+ and pango.

There are some issues with GTK+ and others that have not been worked out completely, but are being worked on. Many of these programs, like GIMP and Inkscape have internal settings with the assumption you are running Tiger. Some are easy to fix, but most are hidden away.

I am sure the Inkscape team and perhaps the Gimp team will release a new version very soon.

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.