Bug 505650

Summary: Print Creator Can't Find GIMP 3 on macOS
Product: [Applications] digikam Reporter: nteovuj0i
Component: Plugin-Generic-PrintCreatorAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description nteovuj0i 2025-06-16 04:59:49 UTC
SUMMARY
Print Creator Can't Find GIMP 3.0 on macOS. It greys out the directory in the /Application folder.

STEPS TO REPRODUCE
1. Open the Print Creator tool

OBSERVED RESULT
The binary will not be found

EXPECTED RESULT
Finding the binary

SOFTWARE/OS VERSIONS
macOS: 15.5 (24F74)
KDE Frameworks Version: 6.10.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I worked around the problem by editing digikamrc to include:
  /Applications/GIMP.app/Contents/MacOS
and by adding a symlink gimp-bin -> gimp in /Applications/GIMP.app/Contents/MacOS
Comment 1 caulier.gilles 2025-06-16 05:32:47 UTC
Hi, 

on my macbook pro, gimp 2.10 is installed and binary name is not the same :

# uname -a
Darwin MacBook-Pro-M1-de-Gilles.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000 arm64
# pwd
/Applications/GIMP.app/Contents/MacOS
# ls -al
total 29232
drwxr-xr-x@ 19 gilles  admin       608 May 14  2024 .
drwxr-xr-x@  7 gilles  admin       224 May 14  2024 ..
-rwxr-xr-x@  1 gilles  admin     94752 May 14  2024 gegl
drwxr-xr-x@  3 gilles  admin        96 May 14  2024 gegl.dSYM
-rwxr-xr-x@  1 gilles  admin  10426672 May 14  2024 gimp.      <=====!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
lrwxr-xr-x   1 gilles  admin        17 May 14  2024 gimp-console -> gimp-console-2.10
-rwxr-xr-x@  1 gilles  admin   4156896 May 14  2024 gimp-console-2.10
drwxr-xr-x@  3 gilles  admin        96 May 14  2024 gimp-console-2.10.dSYM
lrwxr-xr-x   1 gilles  admin        19 May 14  2024 gimp-debug-tool -> gimp-debug-tool-2.0
-rwxr-xr-x@  1 gilles  admin    114448 May 14  2024 gimp-debug-tool-2.0
drwxr-xr-x@  3 gilles  admin        96 May 14  2024 gimp-debug-tool-2.0.dSYM
drwxr-xr-x@  3 gilles  admin        96 May 14  2024 gimp.dSYM
-rwxr-xr-x@  1 gilles  admin     89840 May 14  2024 gimptool-2.0
drwxr-xr-x@  3 gilles  admin        96 May 14  2024 gimptool-2.0.dSYM
lrwxr-xr-x   1 gilles  admin         9 May 14  2024 python -> python2.7
lrwxr-xr-x   1 gilles  admin         9 May 14  2024 python2 -> python2.7
-rwxr-xr-x@  1 gilles  admin     70160 May 14  2024 python2.7
drwxr-xr-x@  3 gilles  admin        96 May 14  2024 python2.7.dSYM
-rwxr-xr-x@  1 gilles  admin      1816 May 14  2024 xdg-email

Best

Gilles Caulier
Comment 2 caulier.gilles 2025-06-16 05:34:22 UTC
Note: Current plugin code search GIMP-bin as executable :

https://invent.kde.org/graphics/digikam/-/blob/master/core/dplugins/generic/tools/printcreator/tools/gimpbinary.cpp?ref_type=heads#L29
Comment 3 caulier.gilles 2025-06-23 05:47:01 UTC
The problem will be same under Windows, as Gimp executable filename can include the version ID.
Comment 4 Maik Qualmann 2025-06-24 19:09:59 UTC
Git commit ed3aaf7121a71a717e97381f4c511595b562acee by Maik Qualmann.
Committed on 24/06/2025 at 19:08.
Pushed by mqualmann into branch 'master'.

fix finding Gimp 3 on Windows

M  +1    -1    core/dplugins/generic/tools/printcreator/tools/gimpbinary.cpp
M  +2    -0    core/dplugins/generic/tools/printcreator/wizard/advprintintropage.cpp

https://invent.kde.org/graphics/digikam/-/commit/ed3aaf7121a71a717e97381f4c511595b562acee
Comment 5 Maik Qualmann 2025-06-24 19:15:57 UTC
Git commit 56f158f24dbf2e5516b5156e9d5af0b0fc3dc9e6 by Maik Qualmann.
Committed on 24/06/2025 at 19:15.
Pushed by mqualmann into branch 'master'.

this should fix finding Gimp on macOS

M  +0    -14   core/dplugins/generic/tools/printcreator/tools/gimpbinary.cpp

https://invent.kde.org/graphics/digikam/-/commit/56f158f24dbf2e5516b5156e9d5af0b0fc3dc9e6