Skip to content

[macOS] Notification may fail #233

@iTommix

Description

@iTommix

I have developed a Python app and bundled it with pyinstaller. Bevause pyinstaller didn't copy all needed files (dead symbolic link for example), i copied these by myself (i have an shell script who do this whole process).

After copy all needed files i do sign the app again:

/usr/bin/codesign -s - --force --all-architectures --timestamp --deep /Users/thomas/Qt/Projects/softphone/dist/Softphone.app

When i start my app, it gives me following:

Cannot verify signature of bundle Softphone. SecStaticCodeCheckValidity call failed with OSStatus: -67009 Could not very signature of app bundle, notifications may fail

And yes, no notification are seen. The code to send notification, i taken from the example:

async def notify(self, title, message): await notifier.send(title=title, message=message)

What can cause this issue?

Regards
Thomas

Edit:
I have this in my script to prevent closing the app when a user clicks the cross(win)/red(mac)-button:

def closeEvent(self, event):
print("Close event triggered")
asyncio.run(self.notify("Hinweis", "Die App läuft im Hintergrund weiter."))
self.hide()
event.ignore()

I want to hide the app then in the tray. However, as you can see, there is a notification triggered to report the the app is still running.

If i quit the app, the te notification will be shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions