-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
[Feat] Pass additional game information to the pre-post launch script using environment variables #3748
[Feat] Pass additional game information to the pre-post launch script using environment variables #3748
Conversation
…st launch script using environment variables
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
recheck |
While I like the idea I see some issues that may occur.
I propose to expose variables like we did for wrappers. Making it clear that they come from Heroic (having a |
Thanks for your comment @imLinguin.
Last but not least the variables are passed as strings so it should be fine if they are null/empty or have unexpected values. If the script is going to use them I would like to think that is up to it for validating the data but I would be very interested into hearing others thoughts on these. PS: I'm not very familiar with Heroic's code and features and this is my first contribution so I wanted to keep it simple as possible. |
I've checked the gameInfo object again and this is the information available in my case. I will highlight the properties that I think can be useful for pre-post launch script, but please let me know if there are other as well for other use cases and I can add them to the variables list:
Thanks EDIT: highlighted runner and app_name |
@imLinguin I just pushed two more commits, one to add the |
Yes the app_name is a game id. |
Thanks for clarifying. Should I add this on a new commit? And if yes, should be named |
recheck |
I would use Maybe we can also send the prefix for games that have a prefix? (HEROIC_GAME_PREFIX for example?) I imagine it could be useful if someone needs to reference it after a game is closed (like if you want to copy some file or something) |
Thanks @arielj for the input. I like the idea of adding the prefix info as well. |
…Shortened variables names.
@arielj any chance this will be merged before the next release? Thanks |
This PR goal is to pass additional game information (title and executable path) to the pre-post launch script using environment variables. This would allow to use the same script with different games, taking actions based on the game title value or executable path.
Tries to fulfill the alternative solution proposed in #3691.
Use the following Checklist if you have changed something on the Backend or Frontend: