


applications/gimp-2.10.app/contents/macos/gimp -idf -batch-interpreter python-fu-eval -b "import sys sys.path=+sys.path import OAFE_PARAM OAFE_PARAM.open_add_flatten_export('/Users/TimB/Desktop/xcftemplate.xcf', '/Users/TimB/Desktop/jpg_to_add.jpg', 2060, 410, '/Users/TimB/Desktop/')" -b "pdb.gimp_quit(1)" Here's my script to launch Gimp that fails: #!/bin/bashĪrg1="/Users/TimB/Desktop/xcf_template.xcf" #XCF file to openĪrg2="/Users/TimB/Desktop/jpg_to_add.jpg" # JPG to insertĪrg5="/Users/TimB/desktop/" # save location Any ideas what I can do to fix this? Am I doing something wrong in how I'm trying to launch Gimp? It loads strangely with broken icons (see image below). To troubleshoot I tried just launching the Gimp UI from a shell script and even that doesn't work properly. My command line arguments are ignored, and I see a message "GIMP-Warning: The batch interpreter 'python-fu-eval' is not available. Therefore, to launch Gimp along with my Python command line arguments I do this: /applications/gimp-2.10.app/contents/macos/gimp -idf -batch-interpreter python-fu-eval -b "import sys sys.path=+sys.path import OAFE_PARAM OAFE_PARAM.open_add_flatten_export('/Users/TimB/Desktop/xcftemplate.xcf', '/Users/TimB/Desktop/jpg_to_add.jpg', 2060, 410, '/Users/TimB/Desktop/')" -b "pdb.gimp_quit(1)" In my shell script just trying to execute “gimp” on a line does not launch Gimp so I believe my alias is not recognized in the script. My alias works great from the command line terminal, but not from a shell script. The alias reads as follows: alias gimp=”/Applications/GIMP-2.10.app/Contents/MacOS/gimp” bash_profile in my home directory (/users/TimB) using the steps described here. In OSX just typing “gimp” at a terminal did not launch Gimp, so I created an alias in the. The plugin opens an XCF template, adds an external JPG as a new layer, positions the external JPG using x and y offsets, flattens, and then exports a new JPG that shows the external JPG in the template. I made a Python plugin that works great from the command line terminal, but I can't it to work from a shell script. 10.14.16, latest version with all updates) and I'm running Gimp 2.10.
