Difference between revisions of "Environment variables"
(Created page with "Environment variables are settings that are passed to programs. == General usage == Environment variables can be written in front of the command that is executed. Syntax: <code>environmentVariable=value myProgram</code>. For example, if you want to pass the variable <code>EDITOR</code> set to <code>nano</code> to <code>crontab -e</code>, you could run <code>EDITOR=nano crontab -e</code>. == Lutris == Let's say you want to enable dxvk_async, so you want to pass <code>D...") |
(→Heroic) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== General usage == | == General usage == | ||
Environment variables can be written in front of the command that is executed. Syntax: <code>environmentVariable=value | Environment variables can be written in front of the command that is executed. Syntax: <code>environmentVariable=value command</code>. For example, if you want to pass the variable <code>EDITOR</code> set to <code>nano</code> to <code>crontab -e</code>, you could run <code>EDITOR=nano crontab -e</code>. If you want to pass more than one variable, just write a space between them, for example <code>LANG=en EDITOR=nano crontab -e</code> | ||
== Lutris == | == Lutris == | ||
Line 9: | Line 9: | ||
*Click ''System options'' and scroll down to ''Environment Variables'' | *Click ''System options'' and scroll down to ''Environment Variables'' | ||
*Click ''Add'' and input <code>DXVK_ASYNC</code> into the ''Key'' box, and <code>1</code> into ''Value''. | *Click ''Add'' and input <code>DXVK_ASYNC</code> into the ''Key'' box, and <code>1</code> into ''Value''. | ||
== Steam == | |||
Let's say you want to enable FSR, so you want to pass <code>WINE_FULLSCREEN_FSR=1</code> to your game. | |||
* Go to your library, right click your game, click ''Properties'' | |||
* In the ''General'' tab, you see ''Launch Options'' | |||
* Input <code>WINE_FULLSCREEN_FSR=1 %command%</code> in the box below | |||
== Heroic == | |||
Let's say you want to enable dxvk_async, ''and'' FSR, ''and'' you want to set the FSR strength to 4, so you want to pass <code>DXVK_ASYNC=1</code>, <code>WINE_FULLSCREEN_FSR=1</code> and <code>WINE_FULLSCREEN_FSR_STRENGTH=4</code>to your game. | |||
* Go to your library, click your game, and click ''settings'' | |||
* In the ''other'' tab, you see ''Advanced Options (Environment Variables)'' | |||
* Input <code>DXVK_ASYNC=1 WINE_FULLSCREEN_FSR=1 WINE_FULLSCREEN_FSR_STRENGTH=4</code> in the box below |
Latest revision as of 00:49, 23 March 2022
Environment variables are settings that are passed to programs.
General usage
Environment variables can be written in front of the command that is executed. Syntax: environmentVariable=value command
. For example, if you want to pass the variable EDITOR
set to nano
to crontab -e
, you could run EDITOR=nano crontab -e
. If you want to pass more than one variable, just write a space between them, for example LANG=en EDITOR=nano crontab -e
Lutris
Let's say you want to enable dxvk_async, so you want to pass DXVK_ASYNC=1
to your game.
- Right click your game, click Configure
- Click System options and scroll down to Environment Variables
- Click Add and input
DXVK_ASYNC
into the Key box, and1
into Value.
Steam
Let's say you want to enable FSR, so you want to pass WINE_FULLSCREEN_FSR=1
to your game.
- Go to your library, right click your game, click Properties
- In the General tab, you see Launch Options
- Input
WINE_FULLSCREEN_FSR=1 %command%
in the box below
Heroic
Let's say you want to enable dxvk_async, and FSR, and you want to set the FSR strength to 4, so you want to pass DXVK_ASYNC=1
, WINE_FULLSCREEN_FSR=1
and WINE_FULLSCREEN_FSR_STRENGTH=4
to your game.
- Go to your library, click your game, and click settings
- In the other tab, you see Advanced Options (Environment Variables)
- Input
DXVK_ASYNC=1 WINE_FULLSCREEN_FSR=1 WINE_FULLSCREEN_FSR_STRENGTH=4
in the box below