Skip to content

Needing workaround for subprocess in signed application bundle #115

@ErikBjare

Description

@ErikBjare

I'm trying to use this library from a PyInstaller-built binary aw-notify running as a subprocess in my application.

The whole thing is correctly signed with PyInstaller (see spec file). The CFBundleExecutable is aw-qt, which manages aw-notify as a subprocess.

However, the subprocess doesn't seem to get NSBundle.mainBundle.bundleIdentifier set. Which fails the check at:

https://github.com/samschott/desktop-notifier/blob/233d8c8981945c64fb92df2dbade908624896b7b/src/desktop_notifier/macos_support.py#L55C11-L55C11

@samschott wrote here:

The alternative would be to try and fake a valid bundle identifier at runtime. Some other packages do this but its a nasty hack and will prevent any apps using it from being accepted in the App store.

I am now assuming that I would need some kind of workaround like that, and that things would probably work if it wasn't for this NSBundle check (hopeful/wishful thinking).

Since the testing process is rather lengthy for me, given how I have to wait for CI to sign etc, I thought I'd make this issue before I venture further. I've only done a little bit of research on this, and am not sure if I'm likely to meet further resistance once I've worked around the bundleIdentifier check.

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