HGL
tame-yellow

How to specify command line arguments when executing via flatpak in terminal?

I'm trying to execute the following command:
flatpak run com.heroicgameslauncher.hgl heroic://launch/1207658691 --no-gui --no-sandbox dm-phobos2?Game=QPro.LeagueMatch?NumBots=6?SpectatorOnly=1?DMTeam=XGame.DMRosterConfigured?Mutator=XWeapons.MutNoSuperWeapon,XGame.MutSlomoDeath?TimeLimit=4?GoalScore=0
flatpak run com.heroicgameslauncher.hgl heroic://launch/1207658691 --no-gui --no-sandbox dm-phobos2?Game=QPro.LeagueMatch?NumBots=6?SpectatorOnly=1?DMTeam=XGame.DMRosterConfigured?Mutator=XWeapons.MutNoSuperWeapon,XGame.MutSlomoDeath?TimeLimit=4?GoalScore=0
This is in an attempt to execute UT2004 via Heroic via Flatpak, with additional command line arguments I'm hoping to pass to UT2004.exe. I pulled the base command from the Steam Non-Steam Game entry added by Boilr. The game launches fine, but the command line argument I'm providing is ignored. Please help.
6 Replies
modern-teal
modern-teal•3y ago
you can provide those arguments in game settings other than that heroic does not forward them to the game
tame-yellow
tame-yellowOP•3y ago
Ok thanks. Would there be a way to script that, e.g. a config file I could automatically adjust before executing?
modern-teal
modern-teal•3y ago
you could modify the config of the game directly (it's in .config/heroic/)
tame-yellow
tame-yellowOP•3y ago
Thanks, I'll have a look. I'm trying to build a custom launcher, but if there's a text file I can edit then that's good enough for me 🤠 Sorry I can't find any .config/heroic on steam deck, I'm guessing you meant ~/.config/heroic? But there's no such file in ~/.config/ folder do I need to perform some action in Heroic UI to generate the config file?
modern-teal
modern-teal•3y ago
ah steamdeck ~/.var/app/com.heroicgameslauncher.hgl/config/heroic
tame-yellow
tame-yellowOP•3y ago
ahh found it at /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/GamesConfig/1207658691.json thanks! cheers

Did you find this page helpful?