Opened 12 years ago

Closed 12 years ago

#35993 closed defect (fixed)

gimp-app fails to run properly

Reported by: dershow Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: skymoo (Adam Mercer), creaktive (Stanislaw Pusep), laurence@…
Port: gimp-app

Description (last modified by skymoo (Adam Mercer))

I just upgraded gimp2 to 2.8.2 (I believe from 2.8). Gimp-app was working properly before. Now if I try gimp-app the application opens but there are no menus, so it is not useable. I get a message window that pops up and says,

GIMP Message

There was an error parsing the menu definition from image-menu.xml:  Failed to open file '/Applications/MacPorts/Gimp.app/Contents/Resources/share/gimp/2.0/menus/image-menu.xml':No such file or directory.

If I just run gimp from the command line is seems to work fine. I see that the only directory in GIMP.app/Contents/Resources/share is themes. So, it seems that there is something in the gimp-app script that is looking for a file that doesn't exist. But, gimp from the command line does find an appropriate menu. I do see that gimp2 contents includes this: /opt/local/share/gimp/2.0/menus/image-menu.xml

So, it seems that gimp2 checks that location, but gimp-app is looking in the wrong place for that file.

Change History (9)

comment:1 Changed 12 years ago by drowe@…

I have just hit exactly the same problem.

However if you create a symbolic link:

cd /Applications/MacPorts/GIMP.app/Contents/Resources/share
sudo ln -s /opt/local/share/gimp gimp

then gimp2.8.2 starts up correctly with the appropriate menus.

Creating the symbolic link may well be a workaround rather than a proper fix - but it does indicate that this defect shouldn't be too had to cure.

For the record, I am running on an Apple MacBookPro1,1 (with the Intel Core Duo 32-bit only processor) and Mac Os X 10.6.8

comment:2 Changed 12 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Cc Me!

comment:3 Changed 12 years ago by skymoo (Adam Mercer)

Owner: changed from macports-tickets@… to devans@…

comment:4 Changed 12 years ago by skymoo (Adam Mercer)

Description: modified (diff)

comment:5 Changed 12 years ago by creaktive (Stanislaw Pusep)

Cc: stas@… added

Cc Me!

comment:6 Changed 12 years ago by laurence@…

Cc: laurence@… added

Cc Me!

comment:7 Changed 12 years ago by laurence@…

I'm having this problem as well. I tried the workaround suggested by drowe, and while it eliminates that error, I am now unable to open or export any format other than xcf. I tried openeing a PNG and it complained that it was an unknown file type, and when I tried exporting an image, the filetype chooser was empty.

comment:8 Changed 12 years ago by dbevans (David B. Evans)

Status: newassigned

As the reporter says this is a problem with gimp-app specifically and not gimp2 so for now please start GIMP from the command line. I hope to have a fix shortly.

comment:9 Changed 12 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

Fix committed in r97804.

The app now has access to all required gimp2 resources.

Note: See TracTickets for help on using tickets.