-
-
Notifications
You must be signed in to change notification settings - Fork 480
[Tech] Skip empty arguments in sideload and frontend command launcher #3009
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
[Tech] Skip empty arguments in sideload and frontend command launcher #3009
Conversation
This needs a rework, as discussed with @CommandMC on Discord. Turning into a draft for now. |
6e03da6
to
d563dc5
Compare
v2: modified the correct location (sideloaded launch function), modified frontend update bypass code to not add spurious whitespace characters (although the actual runners should generally handle this gracefully via |
…nt if falsy (empty, null, ...) If the additional command line arguments are unset/set to an empty string, the sideload command launcher likewise used to pass an empty argument to the launched application. While that is usually harmless, some applications try to parse this argument and (rightfully) complain and usually exit with an error. Make sure that we only pass additional arguments if they are actually set, fixing that issue. This has been encountered with Palia's launcher. While at it, also fix a log line by including additional arguments and a typo in a comment.
d563dc5
to
40dafdf
Compare
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA. |
recheck |
Reworked this. Fixed the syntax nit by using another variable as proposed, dropped the second commit (obsolete, newer code passes update skipping mechanic in a different way to the legendary component). |
If the additional command line arguments are unset/set to an empty string, the wine command launcher will likewise pass an empty argument to the launched application.
While that is usually harmless, some applications try to parse this argument and (rightfully) complain and usually exit with an error.
Make sure that we only pass additional arguments if they are actually set, fixing that issue.
This has been encountered with Palia's launcher.
Use the following Checklist if you have changed something on the Backend or Frontend: