[MacPorts] #16516: Gimp-app fails to run
#16516: Gimp-app fails to run -----------------------------------------+---------------------------------- Reporter: dersh@alum.mit.edu | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: gimp app startup script X11 | Port: gimp-app -----------------------------------------+---------------------------------- 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. -- Ticket URL: <http://trac.macports.org/ticket/16516> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16516: Gimp-app fails to run ---------------------------------+------------------------------------------ Reporter: dersh@alum.mit.edu | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: gimp app startup script X11 Port: gimp-app | ---------------------------------+------------------------------------------ Comment(by dersh@alum.mit.edu): 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, -- Ticket URL: <http://trac.macports.org/ticket/16516#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16516: Gimp-app fails to run ---------------------------------+------------------------------------------ Reporter: dersh@alum.mit.edu | Owner: devans@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: gimp app startup script X11 Port: gimp-app | ---------------------------------+------------------------------------------ Changes (by macsforever2000@macports.org): * cc: dersh@alum.mit.edu (removed) * owner: macports-tickets@lists.macosforge.org => devans@macports.org Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/16516#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16516: Gimp-app fails to run ---------------------------------+------------------------------------------ Reporter: dersh@alum.mit.edu | Owner: devans@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: gimp app startup script X11 Port: gimp-app | ---------------------------------+------------------------------------------ Changes (by devans@macports.org): * status: new => assigned Comment: Replying to [comment:3 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. -- Ticket URL: <http://trac.macports.org/ticket/16516#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16516: Gimp-app fails to run ---------------------------------+------------------------------------------ Reporter: dersh@alum.mit.edu | Owner: devans@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: gimp app startup script X11 Port: gimp-app | ---------------------------------+------------------------------------------ Comment(by dersh@alum.mit.edu): 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. -- Ticket URL: <http://trac.macports.org/ticket/16516#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16516: Gimp-app fails to run ---------------------------------+------------------------------------------ Reporter: dersh@alum.mit.edu | Owner: devans@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: gimp app startup script X11 Port: gimp-app | ---------------------------------+------------------------------------------ Comment(by devans@macports.org): 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. -- Ticket URL: <http://trac.macports.org/ticket/16516#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16516: Gimp-app fails to run ---------------------------------+------------------------------------------ Reporter: dersh@alum.mit.edu | Owner: devans@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: gimp app startup script X11 Port: gimp-app | ---------------------------------+------------------------------------------ Changes (by devans@macports.org): * status: assigned => closed * resolution: => fixed Comment: Closing ticket as dersh@alum.mit.edu confirms r40738 works on Leopard as well. -- Ticket URL: <http://trac.macports.org/ticket/16516#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts