HGL
eastern-cyan
Empty string passed as argv[1] if no options provided, making Palia Launcher misbehave.
I'm trying to run Palia's launcher, a free-to-play game currently in open beta.
The trouble is that Heroic tries to launch to launch it like that according to the log file:
Unfortunately, this application misinterprets an empty string as
argv[1]
as a command line parameter, tries to parse it as a command, and just exists. Sad trombone.3 Replies
eastern-cyanOP•2y ago
What part would I need to change to add a check if the additional arguments are empty and, if so, skip passing them at all?
eastern-cyanOP•2y ago
Oh no, this seems to be happening in a typescript file, https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/blob/6592810f14b3014496c6d9d50ad540c6be5467a3/src/backend/launcher.ts#L651 and later, so no easy editing, other than rebuilding the whole thing...
GitHub
HeroicGamesLauncher/src/backend/launcher.ts at 6592810f14b3014496c6...
A Native GOG, Amazon and Epic Games Launcher for Linux, Windows and Mac. - Heroic-Games-Launcher/HeroicGamesLauncher
eastern-cyanOP•2y ago
GitHub
[Tech] Skip empty arguments in wine command launcher by rdbrschf · ...
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...