This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249937 - Use App Title instead of App Name in OS X Application
Summary: Use App Title instead of App Name in OS X Application
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: pgebauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-21 22:44 UTC by rhwood
Modified: 2015-09-09 11:22 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch to package OS X app using app.title (7.51 KB, application/octet-stream)
2015-01-21 22:44 UTC, rhwood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rhwood 2015-01-21 22:44:04 UTC
Created attachment 151608 [details]
Patch to package OS X app using app.title

By default NetBeans sets the ant build property app.name to branding.token but puts the "human readable" application name in app.title. This causes the following:
- App name on disk does not match app title in main window.
- App name in OS X menu bar does not match app title in main window.

The attached patch uses the app.title instead of the app.name to create the OS X application bundle. It introduces the following default behavior on OS X:
- App name on disk matches app title in main window (excluding version)
- App name in OS X menu bar matches app title in main window (excluding version)
As a side effect the following changes also occur in the build:
- A new OS X-specific launch script replaces the symlink to the standard launch script for UNIX/Linux/OS X in the OS X application bundle. This script figures out the application title from the bundle name before calling the default UNIX/Linux/OS X launch script
- A simple zipped distribution of the OS X application bundle is created (this had been commented out due to issues with the symlink)

Can you please consider including this patch for inclusion in the Module Build Harness?
Comment 1 rhwood 2015-01-22 10:29:24 UTC
(In reply to rhwood from comment #0)
> This causes the following:
 should be "This causes the following behavior on OS X:"