Skip to content

Some apps display a blank name in outdated & their bundleId in list output #490

@carlosfrodriguez

Description

@carlosfrodriguez

Solution?

Replace appNameOrBundleIdentifier with displayName, and probably replace appName wherever it is used to output.

displayName would output the fir non-empty value of the following:

  • appName
  • The basename without the .app extension of the bundlePath
    • Can be slightly different than the app name from the MAS.
    • Does not require a network call.
  • bundleIdentifier

Rejected looking up the trackName from a storeSearch.lookup(app: appId) call:

  • Despite providing the most accurate app name.
  • Requires a network call.
  • Requires an AppStoreSearcher to be passed around / made available.
  • Can always add this in later if the problem is frequent, but doubt that it would be frequent.

Original Issue

Your Environment

  • mas version:1.8.6
  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini): 13.3.1

mas Install Method

brew install mas (homebrew-core)

Describe the Bug

Bandwidth+ App name does not show correctly or even does not show, depends on the command.

App link https://apps.apple.com/es/app/bandwidth/id490461369?l=en&mt=12

To Reproduce

  1. Download the app from the official app store
  2. Execute mas list
  3. Execute mas outdated

Expected Behaviour

The name of the App (Bandwidth+) is displayed correctly and consistent among the mas commands.

Actual Behaviour

  • list shows it as au.id.haroldchu.mac.Bandwidth
  • outdated shows no name

Screenshots, Terminal Output

$ mas list
1219074514  Vectornator                    (4.13.3)
409183694   Keynote                        (13.0)
1541482816  PSWD                           (3.2)
1278508951  Trello                         (2.13.10)
1185488696  Money                          (7.0.25)
439654198   SimpleMind                     (2.0.2)
490461369   au.id.haroldchu.mac.Bandwidth  (1.21)

$ mas outdated
490461369  (1.21 -> 1.22)
439654198 SimpleMind (2.0.2 -> 2.1.0)
1219074514 Vectornator (4.13.3 -> 4.13.4)
1185488696 Money (7.0.25 -> 7.0.26)

Additional Context

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions