Skip to content

fix: show StratoSort Core in macOS dock and Activity Monitor#12

Closed
iLevyTate wants to merge 1 commit intomainfrom
fix/11-macos-app-name
Closed

fix: show StratoSort Core in macOS dock and Activity Monitor#12
iLevyTate wants to merge 1 commit intomainfrom
fix/11-macos-app-name

Conversation

@iLevyTate
Copy link
Owner

Summary

Fixes #11 — macOS dock and Activity Monitor show "Electron" instead of "StratoSort Core".

  • package.json: Added productName: "StratoSort Core" so Electron's app.name resolves correctly at runtime
  • src/main/simple-main.js: Set app.name explicitly before any windows/menus are created; set dock icon via app.dock.setIcon() on macOS
  • scripts/patch-electron-mac.js: New script that patches Electron.app/Contents/Info.plist to replace CFBundleName/CFBundleDisplayName from "Electron" to "StratoSort Core"
  • scripts/postinstall.js: Calls the patch script automatically on macOS after npm install

Production/packaged builds were already correct (electron-builder.json has the right productName). This fix targets the development experience on macOS.

How to test (macOS)

  1. Pull this branch
  2. Run npm install (this triggers the Info.plist patch automatically)
  3. Run npm run dev
  4. Verify:
    • Dock label shows "StratoSort Core" (not "Electron")
    • Dock icon is the StratoSort logo (not the Electron atom)
    • Application menu (top-left of screen) says "StratoSort Core"
    • Activity Monitor shows "StratoSort Core" under Process Name

Note: If you skip npm install and only run npm run dev, the dock icon will update but the dock label may still say "Electron" because the Info.plist patch hasn't been applied.

Fixes #11

macOS shows Electron in the dock and Activity Monitor because it reads
the app name from the Electron binary Info.plist during development.

- Add productName to package.json so Electron resolves app.name correctly
- Set app.name explicitly before any windows/menus are created
- Set dock icon programmatically via app.dock.setIcon on macOS
- Add postinstall script that patches Electron.app Info.plist on macOS
  to replace CFBundleName/CFBundleDisplayName with StratoSort Core

Production builds were already correct (electron-builder.json has the
right productName); this fix targets the development experience.
@iLevyTate
Copy link
Owner Author

Superseded by #13 which includes this fix plus additional macOS and RAG improvements.

@iLevyTate iLevyTate closed this Feb 14, 2026
@iLevyTate iLevyTate deleted the fix/11-macos-app-name branch February 14, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

on Mac, app name is showing as Electron

1 participant