Skip to content

Commit 7d60231

Browse files
committed
wiki: Clarify that environment isn't imported to systemd
1 parent 7a237e5 commit 7d60231

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/wiki/Application-Issues.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ environment {
6969
}
7070
```
7171

72+
Note that the niri environment config does not propagate to apps and shells started by systemd, for example to DankMaterialShell and its application launcher.
73+
You can set the variable in your login shell config (i.e. `~/.bash_profile`) instead, though keep in mind that then it will be set for all compositors, not just niri.
74+
7275
### Fullscreen games
7376

7477
Some video games, both Linux-native and on Wine, have various issues when using non-stacking desktop environments.

docs/wiki/Configuration:-Miscellaneous.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ environment {
141141
}
142142
```
143143

144+
Note that these variables do not propagate to the systemd global environment, so tools and applications started by systemd do not see them.
145+
In particular, if you start a desktop shell like DankMaterialShell through systemd, then use its built-in application launcher, the apps won't see these environment variables.
146+
147+
If you want all processes to see the environment variables, you can set them in your login shell config instead (i.e. `~/.bash_profile`).
148+
The `niri-session` shell script runs through the login shell and imports all environment variables to systemd before starting niri.
149+
Keep in mind that all compositors will see variables set in the login shell, not just niri.
150+
144151
### `cursor`
145152

146153
Change the theme and size of the cursor as well as set the `XCURSOR_THEME` and `XCURSOR_SIZE` environment variables.

0 commit comments

Comments
 (0)