Skip to content

Pass system properties into Minecraft (+ some launch code cleanup) #3822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 26, 2025

Conversation

Gaming32
Copy link
Collaborator

Prism and MultiMC pass some system properties into the game with various launcher metadata. This PR adds similar functionality into Theseus. There is also some cleanup of code surrounding the game's launch.

In all, it adds the following properties:

  • modrinth.process.args: The arguments passed to the game launch, separated by \u001f
  • modrinth.process.startTime: The start time, as an ISO 8601 datetime
  • modrinth.profile.created: The time at which the profile was created, as an ISO 8601 datetime
  • modrinth.profile.icon (optional): The path to the profile's icon, if any
  • modrinth.profile.link.project (optional): The ID of this profile's linked project, if any
  • modrinth.profile.link.version (optional): The ID of this profile's linked project version, if any
  • modrinth.profile.modified: The time at which the profile was last modified, as an ISO 8601 datetime
  • modrinth.profile.name: The name of the profile

@Gaming32 Gaming32 added the app Relates to Modrinth App label Jun 20, 2025
Copy link
Member

@AlexTMjugador AlexTMjugador left a comment

Choose a reason for hiding this comment

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

Overall good work, but I'd like to discuss something important before merging.

@Gaming32 Gaming32 added this pull request to the merge queue Jun 26, 2025
Merged via the queue into main with commit f10e0f2 Jun 26, 2025
1 check passed
@Gaming32 Gaming32 deleted the josiah/mc-system-properties branch June 26, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Relates to Modrinth App
Development

Successfully merging this pull request may close these issues.

2 participants