This topic has been locked
boccadoro82 Jan 19, 2019 @ 6:04pm
Setting multiple %command% in launch options
Hi all. I need to set multiple command for launching civilziation 6 on steam linux.
I need to put in launch options:
"primusrun %command"
and
"LD_PRELOAD=/usr/lib/libfreetype.so %command%"
How do i do it?
Thank you
< >
Showing 1-9 of 9 comments
jason Jan 19, 2019 @ 7:05pm 
Variables always go first, so
LD_PRELOAD=/usr/lib/libfreetype.so primusrun %command%
boccadoro82 Jan 20, 2019 @ 12:56am 

thank you. This makes the game start but it runs with integrated intel card, not with primusrun.
boccadoro82 Jan 20, 2019 @ 12:56am 

thank you. This makes the game start but it runs with integrated intel card, not with primusrun.
jason Jan 20, 2019 @ 4:39am 
You may find more help asking in
https://steamcommunity.com/app/221410/discussions/5/
[✪DPR-RI] dynamix Jan 5, 2022 @ 6:27pm 
this maybe too late, but i found out you can run 2 commands before %command% using the logical AND operator (&&).

for example, i want to run 'gamemode' command and 'mangohud' command at the same time, it will be like:

gamemode && mangohud %command% (and maybe after the %command% you can define variables like MANGOHUD_DLSYM=1)
jason Jan 6, 2022 @ 2:12am 
That does not do what you want

x && y means run x, wait for x to finish, if x was successful run y, if x was not successful do not run y.

In your example gamemode immediately exits having successfully done nothing.

You cannot define environment variables after a command, those would be arguments to the command, that would only ever work if the command you were running deliberately interpreted its arguments in that manner.

Given gamemode and mangohud both wrappers around their arguments, what you want is
MANGOHUD_DLSYM=1 gamemode mangohud %command%

And I think that should be gamemoderun in any case.
SilvertongueRED Aug 6, 2023 @ 4:42pm 
Originally posted by NoAimer:
this maybe too late, but i found out you can run 2 commands before %command% using the logical AND operator (&&).

for example, i want to run 'gamemode' command and 'mangohud' command at the same time, it will be like:

gamemode && mangohud %command% (and maybe after the %command% you can define variables like MANGOHUD_DLSYM=1)

You made my life so much better with just two characters: that && really did it. Now I have modded rounds and potion craft AND reshade on both in game mode. Life is good again.
Heads up, I had to put my reshade command first then the && (spaces before and after said characters) then the modded launch command for anyone doin the same (using R2ModManager but I'm sure it'd work with Thunderstore or any other too).
ok
Tim Aug 7, 2023 @ 4:48am 
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Jan 19, 2019 @ 6:04pm
Posts: 9