question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change macOS "Standard Menu Item Actions" app name

See original GitHub issue
  • Electron version: 1.7.10
  • Electron builder: 19.52.1
  • Target: macOS

Given package.json

{
    "name": "barcode-to-pc-server",
    ...
    "build": {
        "productName": "Barcode to PC server",
        ...
    }
    ...
}

Expected behavior

I expected to see the package.json>build>productName in the application menu>About/Hide/Quit Is there another property for that?

Actual behavior

I see the package.json>name in the application menu image

docs: https://electronjs.org/docs/api/menu#standard-menu-item-actions

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

6reactions
ahadcovecommented, Jan 13, 2018

In your main.js (Main Electron file) towards the top have app.setName("Your New Name");

https://electronjs.org/docs/api/app#appsetnamename

If that doesn’t work I set productName at the top of my package.json also. Outside of build

0reactions
stale[bot]commented, Jul 2, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use the Choose from Menu action in Shortcuts on Mac
The Choose from Menu action lets you decide what a shortcut should do when it's run. You choose from a predefined list of...
Read more >
How to change the app name shown in a Catalyst app?
Tapping on that menu includes the "About MyCoolApp" menu. The About box also shows "MyCoolApp" under the app icon. Other standard default menus...
Read more >
How to connect code to Mac OS menus (File, Edit,...)
I am new to Mac OS programming. I have an Swift app I would like to create and the user will need to...
Read more >
The menu bar - Components - Human Interface Guidelines
Pressing Option changes Quit YourAppName to Quit and Keep Windows. Use the same short app name you supply for the About item. Display...
Read more >
Accessing Actions Using Menu Elements - Apple Developer
In this tutorial, you'll add these actions to the app's menu bar. ... Apps built with Mac Catalyst automatically supply an Edit >...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found