Commit 76f2018
committed
Show "Ness" instead of "harness" in the macOS app menu
The app menu's About / Hide / Quit items read "harness" because they
derive from app.name, which Electron takes from package.json's top-level
"name" — still "harness". The menu bar title is already correct since
macOS reads that from CFBundleName (build.productName).
Renaming the package or calling app.setName() is not an option: app.name
keys both the userData directory and the macOS Safe Storage keychain
item, and the keychain is case-sensitive, so either would break
secrets.enc decryption. Instead, set explicit labels from a new
APP_DISPLAY_NAME constant, and set the About panel's applicationName so
the dialog behind the About item matches too.1 parent 2ec7e8c commit 76f2018
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
381 | | - | |
| 387 | + | |
382 | 388 | | |
383 | | - | |
| 389 | + | |
384 | 390 | | |
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
389 | 395 | | |
390 | 396 | | |
391 | | - | |
| 397 | + | |
392 | 398 | | |
393 | 399 | | |
394 | 400 | | |
| |||
411 | 417 | | |
412 | 418 | | |
413 | 419 | | |
414 | | - | |
| 420 | + | |
415 | 421 | | |
416 | 422 | | |
417 | 423 | | |
| |||
769 | 775 | | |
770 | 776 | | |
771 | 777 | | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
772 | 784 | | |
773 | 785 | | |
774 | 786 | | |
| |||
0 commit comments