Bug 491040

Summary: Unable to use Darktable for demosaicing on MacOS ARM
Product: [Applications] digikam Reporter: Michael Miller <michael_miller>
Component: Setup-ImageEditorAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin, michael_miller
Priority: NOR    
Version: 8.4.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 8.5.0
Sentry Crash Report:
Attachments: screenshot

Description Michael Miller 2024-07-30 22:31:39 UTC
Created attachment 172132 [details]
screenshot

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
All options other than LIBRAW are disabled in 

STEPS TO REPRODUCE
1. Go to Preferences->Image Editor (Settings is called Preferences on Mac)
2. Click the RAW Behavior tab
3. In the "Always open the Raw Import Tool to customize settings" option, open the drop-down list
4. All options are disabled except for "Import Raw Using Libraw (default)", even though Darktable is installed.

OBSERVED RESULT
All options are disabled except for "Import Raw Using Libraw (default)"

EXPECTED RESULT
Default option and "Raw Import using DarkTable" are enabled since DarkTable is installed.

SOFTWARE/OS VERSIONS
Windows: 
macOS: Sonoma 14.5 (23F79)
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I checked the docs, and there was no mention of this being a MacOS limitation.  If so, the bug report should be against the docs and not the code.
Comment 1 Maik Qualmann 2024-07-31 04:28:31 UTC
If the Darktable is grayed out, the executable is not found via a Qt function.
What is the exact path to the Darktable binary on macOS?

Maik
Comment 2 Michael Miller 2024-07-31 10:58:40 UTC
Using the darktable.dmg for installation puts the binaries in /Applications/darktable.app/Contents/MacOS.
Comment 3 Maik Qualmann 2024-07-31 20:45:50 UTC
Git commit 829e1313f1f4e7a844b7ca1031ed50dedf747cd3 by Maik Qualmann.
Committed on 31/07/2024 at 20:44.
Pushed by mqualmann into branch 'master'.

add path hints to RAW programs for macOS

M  +9    -1    core/dplugins/rawimport/art/rawimportartplugin.cpp
M  +9    -1    core/dplugins/rawimport/darktable/rawimportdarktableplugin.cpp
M  +9    -1    core/dplugins/rawimport/rawtherapee/rawimportrawtherapeeplugin.cpp
M  +3    -2    core/libs/threadimageio/engine/dfileoperations.cpp
M  +2    -1    core/libs/threadimageio/engine/dfileoperations.h

https://invent.kde.org/graphics/digikam/-/commit/829e1313f1f4e7a844b7ca1031ed50dedf747cd3
Comment 4 Michael Miller 2024-07-31 21:26:49 UTC
There's a minor bug in the PR.  The path for RawTherapee is:
/Applications/RawTherapee.app/Contents/MacOS  

The default MacOS file system is case sensitive.  I'll install the other raw processors and update the comments with the paths if they aren't correct.
Comment 5 Maik Qualmann 2024-08-01 05:47:04 UTC
Git commit 96b1678e7594a3b997bc1d86dfd4849591d68219 by Maik Qualmann.
Committed on 01/08/2024 at 05:46.
Pushed by mqualmann into branch 'master'.

fix path to RawTherapee.app on macOS

M  +1    -1    core/dplugins/rawimport/rawtherapee/rawimportrawtherapeeplugin.cpp

https://invent.kde.org/graphics/digikam/-/commit/96b1678e7594a3b997bc1d86dfd4849591d68219
Comment 6 Maik Qualmann 2024-08-01 05:51:19 UTC
I don't use macOS myself and only imagined it for RawTherapee. ((:-))
The executable files are in lowercase?

Maik
Comment 7 Michael Miller 2024-08-01 11:04:28 UTC
Yes, the binaries are all lower case.

I couldn't find an MacOS installation package for ART, and I don't have time to set up a build environment.  Sorry.

Thank you for doing this.  I appreciate it.

Cheers,
Mike
Comment 8 caulier.gilles 2024-09-17 11:57:44 UTC
Michael,

Problem is fixed now with the 8.5.0 pre-release installer for Apple Silicon (arm64) ?

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 9 Michael Miller 2024-09-17 16:56:16 UTC
Thanks.  I've been using it in my Homebrew build for a while now.  It works well.  Thank you.
Comment 10 Michael Miller 2024-09-17 16:57:07 UTC
I marked the issue as resolved.