Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16516 closed defect (fixed)

Gimp-app fails to run

Reported by: dershow Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: gimp app startup script X11 Cc:
Port: gimp-app

Description

I have the full gimp-app set installed. I have been using it for a while, along with Xquartz with no problems. I recently upgraded X11 to 2.3.0 and now if I double click on the gimp application nothing happens. It doesn't matter if I first open X11, or not. I see the following in my system.log:

Sep 11 14:24:34 adamsmacbook-2 [0x0-0x6ab6ab].org.gimp.Gimp[46642]: /Applications/MacPorts/Gimp.app/Contents/Resources/script: line 15: open-x11: command not found
Sep 11 14:24:34 adamsmacbook-2 [0x0-0x6ab6ab].org.gimp.Gimp[46642]: Unable to find application named 'XDarwin'

The script mentioned above contains the following lines, among others:

cp -f "$CWD/bin/getdisplay.sh" /tmp/
rm -f /tmp/display.$UID
open-x11 /tmp/getdisplay.sh || \
open -a XDarwin /tmp/getdisplay.sh || \
echo ":0" > /tmp/display.$UID

But neither open-x11 or XDarwin are in my path. It seems that with the update to 2.3.0 that there is another way to open X11, and these two ways fail.

There is an easy work around, which is to first open X11 then type gimp at the command line, and it seems to run just fine. So the problem is just with the startup script that is part of gimp-app.

Attachments (1)

script (1013 bytes) - added by dershow 16 years ago.
A new version of the gimp-app script

Download all attachments as: .zip

Change History (9)

comment:1 Changed 16 years ago by dershow

Cc: dersh@… added

Cc Me!

Changed 16 years ago by dershow

Attachment: script added

A new version of the gimp-app script

comment:2 Changed 16 years ago by dershow

I looked at how the Inkscape startup script works and I modified the gimp-app script to work the same way. It seems that with 10.5 just executing gimp will cause X11 to open fine. So the attached script checks for an OS version. For older versions (3 or 4) it runs the identical code to what was there before, while for 10.5 it just runs gimp. (The only functional changes are to find the OS version and then an if statement to skip part of the code). I have only tested this on my own system (10.5.4 with XQuartz 2.3.0), but it is working fine for me.

I am not sure exactly where this patch should go in the build process, but it should end up replacing: /Applications/MacPorts/Gimp.app/Contents/Resources/script. Can someone add this fix to gimp-app?

Thanks,

comment:3 Changed 16 years ago by mf2k (Frank Schima)

Cc: dersh@… removed
Owner: changed from macports-tickets@… to devans@…

Assigning to maintainer.

comment:4 in reply to:  3 Changed 16 years ago by dbevans (David B. Evans)

Status: newassigned

Replying to macsforever2000@…:

Assigning to maintainer.

Thanks for the input. It looks like this may be a Leopard only problem as the gimp-app seems to work (and launch X11) if necessary on 10.4.11. Will try and commit a revised version in a day or so.

comment:5 Changed 16 years ago by dershow

Yes, this is a Leopard only problem. The script that I attached earlier actually just checks for the OS, and if it is 10.4 does exactly what the old script did. And if it is 10.5 it just opens gimp. This problem remains with the update to gimp 2.6.

comment:6 Changed 16 years ago by dbevans (David B. Evans)

Have added your script and committed in r40738. Thanks. Tested OK on 10.4.11. If you can confirm that it works on your system, I will close the ticket.

comment:7 Changed 16 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

Closing ticket as dersh@… confirms r40738 works on Leopard as well.

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.