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.

Inconsistent Documentation/Behavior around App name

See original GitHub issue

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Forge Version:
    • 6.0.0-beta.51
  • Electron Version:
    • v8.2.3
  • Operating System:
    • macOS 10.15.3
  • Last Known Working Electron Forge version::
    • NA

Expected Behavior

I’m trying to set the Application name text in all instances. Using name in the bundler will name it as I have defined.

Actual Behavior

The packager config name will be used for the top level application name, but it still falls back to the package.json productName or name for the sub-level item naming (About xxx, Hide xxx, Quit xxx, etc)

image

To Reproduce

Calling electron-forge make to build.

package.json

{
	"name": "product-name",
	"productName": "Readable ProductName,
	"version": "1.0.0",
	"main": "src/main.js",
	"scripts": {
		"start": "nodemon --watch src --watch static --exec electron .",
		"start-no-watch": "electron .",
		"build": "electron-forge make"
	},
	"config": {
		"forge": "forge.config.js"
	},
	... etc
}

forge.config.js

const config = {
	packagerConfig: {
		name: 'Will Replace TopLevel',
		executableName: 'Keystone Omni Desktop',
		icon: 'assets/app.icns',
		appBundleId: 'com.xxxxxx.omni',
		appCategoryType: 'public.app-category.developer-tools',
	},
	makers: [
		{
			name: '@electron-forge/maker-zip',
			platforms: ['darwin'],
		},
	],
}
module.exports = config

Additional Information

According to the packager documentation:

The application name. If omitted, it will use the productName or name value from the nearest package.json.

What is not clear is that the specified name here is not used EVERYWHERE, and in some cases the package.json name is still used.

NOTE: Not sure if this is best applied to electron-forge or electron-packager, have not tested using electron-packager separately for the results there.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
russellpekalacommented, Feb 9, 2022

Can we reopen this? My team is having this problem. We can potentially open a PR later this week or next to address it. It is very difficult for us to have different dev and prod environments

0reactions
mix3dcommented, Dec 5, 2022

@MarshallOfSound Please reopen this ticket. Your comment is insufficient for the issue at hand. I created this issue from this StackOverflow issue: https://stackoverflow.com/a/62479773/3780922

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent Documentation/Behavior around App name #1774
According to the packager documentation: The application name. If omitted, it will use the productName or name value from the nearest package.
Read more >
Persistent problem with DPMRA.EXE crashing and multiple ...
I have encountered a problem recently where DPM reports inconsistent replicas for numerous servers (currently 8 servers with 11 datasources) ...
Read more >
Data not getting pushed to firebase (inconsistent behaviour)
This typically indicates a race condition. In this case I suspect that your storeSuspectData is being called when the user submits a form....
Read more >
Phone makers are breaking your favorite apps with reckless ...
There's a lack of documentation for developers trying to work around all the various smartphone manufacturer customizations related to ...
Read more >
Build settings reference | Apple Developer Documentation
A detailed list of individual Xcode build settings that control or change the way a target is built.
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