全スレッド > Steam 掲示板 > Steam Discussions > トピックの詳細
このトピックはロックされています
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
< >
1-9 / 9 のコメントを表示
jason 2019年1月19日 19時05分 
Variables always go first, so
LD_PRELOAD=/usr/lib/libfreetype.so primusrun %command%

thank you. This makes the game start but it runs with integrated intel card, not with primusrun.

thank you. This makes the game start but it runs with integrated intel card, not with primusrun.
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)
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.
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).
Tim 2023年8月7日 4時48分 
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
1-9 / 9 のコメントを表示
ページ毎: 1530 50

全スレッド > Steam 掲示板 > Steam Discussions > トピックの詳細
投稿日: 2019年1月19日 18時04分
投稿数: 9