Gimp 2.10.22 on MacOS misses dialog in gif and png export
Operating System: macOS
Package: macports gimp2 package and McGimp installer by Partha Bagchi
Description of the bug
When exporting to gif the dialog where you can choose animation does not appear. Instead only a simple dialog with Help[, Cancel, Export appears. Similarly for export to png.
Is the bug reproducible? always
- Load or create a picture with a couple of layers
- Export as ...
- Choose gif.
Expected result: Dialog with details
Actual result: Simple Dialog
I traced the issue back to a wrong value of gimp_data_directory. It is not set, probably just the empty string. Both plugins (file-save-gif and file-save-png) Use this value to find their ui file.
For plugins it is not set properly, because in this version, plugins are in their own subdirectory within the plug-ins directory, and the algorithm in libgimpbase/gimpenv.c assumes that they are directly in the plug-ins directory. There is a similar problem with the python-fu plugin. It probably has the same or a similar cause. In the Python console, using 'import gimp' and then printing gimp.data_directory, gives a wrong value, but I don't know if there are Python plugins that actually use this.
I have a patch for this, that solves the export problem, but not the Python problem. I added code for the subdirectory cas (but I left the possibility of having a plugin directly in the plug-ins directory).
If you have a backtrace for a crash or a warning, paste it here. gimpenv.c-patch