godigg.com

  • dot
  • pat
Home › pat

Navigation

  • Blogs
  • Books
  • Log In

Search

dearly devoted

  • Mmmm...pancakes, b*tches
  • Mother's Day Gift (to be proud of): Charity Water Bracelet
  • Heavy Metal: Kimberly Blake Jewlery
  • Graduation/School Gifts
  • Children's Books: Yoshitomo Nara's The Lonesome Puppy
more

Feed

Syndicate content

Getting GIMP to run properly in Leopard (OSX 10.5) with X11

Submitted by pat on Thu, 11/01/2007 - 11:35pm.

I come from a linux background mostly, and I finally took the plunge a couple of weeks ago to dive into a new 24" iMac. I have loved it so far, with a great mix of useability and power that I was accustomed to on my regular computers. When I bought the machine I had been hearing for some time about Leopard, and how great it was going to be, so I made sure to place my order as soon as possible after release.

The problem for me is that I enjoy using a wide range of open source applications for my day to day computing tasks. Of course, the biggest ones for me are things like OpenOffice.org and GIMP. I was able to get X11 installed no problem on my machine when it was Tiger, and I could use the apps just fine.

That changed with Leopard. GIMP was crashing on start, and I couldn't figure out why. So I tried following the instructions here to try using the X11 from Tiger instead. The instructions were dead simple and worked like a charm. Soon I was back on X11 from tiger, but I was getting the dirty "double X in finder" as well as the infinite bouncing X when trying to launch GIMP. A quick google turned up more people having exactly the same problem, but no sign of a good answer on how to fix it. So being the linux geek that I am, I turned to some dirty scripting to get the job done.

Unfortunately for me, I knew absolutely _nothing_ about scripting on OSX. So last night starting around 8pm I started scouring through the net looking for examples and tutorials. A few hours later, and I had hacked together this Applescript to fix my problem:

if x11running() is false then
	do shell script "/Applications/Utilities/X11.app/Contents/MacOS/X11 &> /dev/null &"
end if


do shell script "open-x11 /Applications/Gimp.app/Contents/Resources/bin/gimp"

on x11running()
	tell application "System Events" to (name of processes) contains "X11"
end x11running

Turns out that it worked! Now, I know that it could be very nasty, and I haven't even fully read the references on Applescript, so if anyone wants to suggest any improvements, I am all ears, but in the end it does what I needed quickly, which is to launch GIMP without double X windows, bouncing X windows, or the cache-font error message popping up.

To use it, just cut and paste the above code into a script editor window, compile it, and save it. Should be good to go.

  • pat's blog
  • 1697 reads

os x apps

Submitted by Anonymous on Wed, 12/05/2007 - 3:01am.

http://freelanceswitch.com/working/35-absolutely-essential-mac-apps/

hey i finally found a buncha different os x apps for u to check out i remember being intrigued by some but i bet more will be applicable to your code monkey impulses.

  • reply

open-x11 no longer exists in Leopard

Submitted by Anonymous on Thu, 12/27/2007 - 10:25pm.

Hi,

I had similar problem and hit upon the following URL:

http://groups.google.sk/group/comp.sys.mac.system/msg/eea232183b519a8c

So, the method using open-x11 may not be a final solution.

I happened to archive-installed my Leopard on the MacBook on which Tiger was running before (Drive A). GIMP on the Leo looked running happily on that machine, while some people on the net say it doesn't run. One of them showed the error log, and it said that open-x11 does not exist.
I clean-installed a brand new Leopard on another hard drive and tried to start GIMP on it. It did not work. (Drive B)
I searched open-x11 on Drive A, and found that it's in /Previours System/usr/bin !! GIMP worked only beause I archive-installed the Leopard and the open-x11 was in the old Tiger System tree!

You may be better to reconfirm your situation.

  • reply

Thank you

Submitted by wayne (not verified) on Mon, 04/21/2008 - 10:00am.

It finally works, thank you.

  • reply

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

  • dot
  • pat