Skip to content

snapicon.app, cpfg.app, and medit.app share an identical CFBundleIdentifier on macOS #14

Description

@JimHanan

On macOS (Apple Silicon, native arm64 build from source), snapicon fails
to capture the correct window content — it captures the desktop
background/wallpaper instead of the window beneath the capture frame, and
in one attempt to work around this, it quit unexpectedly instead.

While investigating, found that three different plugin bundles all share
the literal same CFBundleIdentifier, apparently a copy-paste artifact:

snapicon/Info.plist: org.algorithmicbotany.CPFG
cpfg/Info.plist: org.algorithmicbotany.CPFG
medit/Info.plist: org.algorithmicbotany.CPFG

(browser/Info.plist correctly uses org.algorithmicbotany.Browser, for
comparison — so the pattern elsewhere in the tree is one identifier per
tool.)

On modern macOS, Screen Recording access (needed for snapicon's
CGWindowListCreateImage-based capture, via Qt's QScreen::grabWindow) is
authorized per bundle identifier via TCC. Three unrelated tools claiming
the same identifier seems likely to confuse that permission tracking —
consistent with, though not conclusively proven to be the sole cause of,
the capture-background-instead-of-window symptom.

Suggest giving each plugin bundle its own unique CFBundleIdentifier
(e.g. org.algorithmicbotany.Snapicon, org.algorithmicbotany.Medit),
matching how browser.app is already set up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions