Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@marcoesters
Copy link
Contributor

Description

Info.plist files contain properties for macOS app bundles. menuinst currently supports only a handful of these. Each new properties require a schema update, which does not scale. Moreover, app bundles that contain properties that macOS does not recognize are not invalid and function normally.

Instead of continuously adding new properties, add a property that allows shortcut authors to define any Info.plist property. In the future, menuinst should only explicitly add those that it needs to manipulate and leave other properties to the extra keyword list. Old keywords remain for now to maintain backwards compatibility.

This updates the schema version.

Closes #195
Closes #410

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@github-project-automation github-project-automation bot moved this to 🆕 New in 🔎 Review Nov 25, 2025
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Nov 25, 2025
@marcoesters marcoesters marked this pull request as ready for review November 26, 2025 00:43
@marcoesters marcoesters requested a review from a team as a code owner November 26, 2025 00:43
@XhstormR
Copy link

XhstormR commented Dec 4, 2025

ping

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Approved in 🔎 Review Dec 4, 2025
Comment on lines +172 to +175
raise ValueError(
f"Duplicate Info.plist property found: {key}. "
"Remove the property from `info_plist_extra`."
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we ignore this if they have the same value, and only error if there's a conflict?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think raising an exception for any duplication is simpler and keeps the metadata files cleaner.

@jaimergp
Copy link
Contributor

jaimergp commented Dec 4, 2025

In the future, menuinst should only explicitly add those that it needs to manipulate and leave other properties to the extra keyword list. Old keywords remain for now to maintain backwards compatibility.

I'd like to see this taken care of in another PR, where we deprecate the top-level plist keys we don't need in favor of extra_plist_info.

@marcoesters
Copy link
Contributor Author

In the future, menuinst should only explicitly add those that it needs to manipulate and leave other properties to the extra keyword list. Old keywords remain for now to maintain backwards compatibility.

I'd like to see this taken care of in another PR, where we deprecate the top-level plist keys we don't need in favor of extra_plist_info.

I created #419 for this.

@marcoesters marcoesters merged commit 3649c1d into conda:main Dec 4, 2025
17 checks passed
@github-project-automation github-project-automation bot moved this from ✅ Approved to 🏁 Done in 🔎 Review Dec 4, 2025
@github-project-automation github-project-automation bot moved this from Sorting ⚙️ to Done 💪🏾 in conda Roadmap and Sprint Planning Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Help resolving issues in a MacOS-Shortcut bundled using menuinst Expand Info Property List keywords for MacOS apps

4 participants