Bug 496380 - Cannot start app under MacOS Intel: The application dock does not have permission to open (null)
Summary: Cannot start app under MacOS Intel: The application dock does not have permis...
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-MacOS (show other bugs)
Version: 8.5.0
Platform: macOS (DMG) macOS
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
: 496828 497285 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-11-17 15:51 UTC by alexkrz
Modified: 2024-12-10 17:43 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexkrz 2024-11-17 15:51:54 UTC
SUMMARY

Since updating to MacOS 15.1, I cannot start digikam anymore.
The message I get is "The application dock does not have permission to open (null)".
I assume this is due to missing code signing.
Following this forum solved the issue for me: https://discussions.apple.com/thread/255827087?sortBy=rank

STEPS TO REPRODUCE
1. Open digikam from Launchpad
2. See error message
3. 

OBSERVED RESULT
App does not start

EXPECTED RESULT
App would start as before

SOFTWARE/OS VERSIONS
Windows:  -
macOS: 15.1 (Intel)
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5

ADDITIONAL INFORMATION
Comment 1 Mark Christensen 2024-11-23 20:32:29 UTC
I hava the same problem on an Intel MacBook Pro 16 inch 2019 after upgrading to macOS 15.1. I previously downloaded and installed the legacy version https://files.kde.org/digikam/legacy/digiKam-8.5.0-20241027T124153-Qt5-MacOS-x86_64.pkg and the problem still exists.

I just upgraded to macOS 15.1.1 and downloaded the current Mac Intel pre-release https://files.kde.org/digikam/legacy/digiKam-8.6.0-20241121T055349-Qt5-MacOS-x86_64.pkg and the problem still exists.

As suggested in Bug 49562 (https://bugs.kde.org/show_bug.cgi?id=495628#c7) I read the apple community post and ran command "sudo codesign --force --deep --sign - ./digikam.app" from the ./Applications/digiKam.org folder.  After the command completed, I was able to open digiKam from the finder without any problems.

I hope this information assists with fixing this bug.

Thank you again for your time and efforts.
Comment 2 Michael Miller 2024-11-23 22:00:35 UTC
Hi Alex and Mark,
This isn't a bug in digiKam, but is caused by the way macOS validates packages.  Since digiKam is an open-source project, we don't have the keys to sign the program the way Apple wants it.  In a commercial package, Apple would issue keys to the company to sign the program with "official" keys.  That's the codesign command you added below.  By doing codesign yourself, you are authorizing the program to run on your computer.

We appreciate the tip about codesign.  We'll add that to the documentation.

Cheers,
Mike
Comment 3 caulier.gilles 2024-11-24 06:32:30 UTC
Read the paper here :

https://hackaday.com/2024/11/01/apple-forces-the-signing-of-applications-in-macos-sequoia-15-1/

It's a shame. I refuse to pay to Apple 99 euros by year. To support this OS, they must pay open source developers instead...

I'm sure that Microsoft will follow the same way as the same mechanism exists under Windows.

Best 

Gilles Caulier
Comment 4 caulier.gilles 2024-11-24 06:45:02 UTC
This long story is very instructive :

 https://forums.macrumors.com/threads/bug-or-intentional-macos-15-1-completely-removes-ability-to-launch-unsigned-applications.2441792/

Sounds like to auto sign is not required all the time. plist file must be updated, but how...

Gilles
Comment 6 caulier.gilles 2024-11-24 07:18:03 UTC
There is a solution without to self sign a package : removing the quarantine flag :

xattr -d com.apple.quarantine $FILE

Its explained in this another paper :

https://www.osnews.com/story/141055/bug-or-intentional-macos-15-1-completely-removes-ability-to-launch-unsigned-applications/

Gilles
Comment 7 caulier.gilles 2024-11-29 12:12:32 UTC
*** Bug 496828 has been marked as a duplicate of this bug. ***
Comment 8 caulier.gilles 2024-12-08 07:33:00 UTC
This article resume well the situation:

https://iboysoft.com/tips/the-application-finder-does-not-have-permission-to-open-null.html

Gilles Caulier
Comment 9 Maik Qualmann 2024-12-10 17:43:44 UTC
*** Bug 497285 has been marked as a duplicate of this bug. ***