wiki: Clarify that environment isn't imported to systemd
Browse files at this commit7d60231e35800bc9582f3147c547f8a227bdb9cbParent: 7a237e52 changed files +10 -0
docs/wiki/Application-Issues.mdmodified+3 -0
| @@ -69,6 +69,9 @@ environment { | |||
| 69 | } | 69 | } |
| 70 | ``` | 70 | ``` |
| 71 | 71 | ||
| 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 | + | ||
| 72 | ### Fullscreen games | 75 | ### Fullscreen games |
| 73 | 76 | ||
| 74 | Some video games, both Linux-native and on Wine, have various issues when using non-stacking desktop environments. | 77 | Some video games, both Linux-native and on Wine, have various issues when using non-stacking desktop environments. |
docs/wiki/Configuration:-Miscellaneous.mdmodified+7 -0
| @@ -141,6 +141,13 @@ environment { | |||
| 141 | } | 141 | } |
| 142 | ``` | 142 | ``` |
| 143 | 143 | ||
| 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 | + | ||
| 144 | ### `cursor` | 151 | ### `cursor` |
| 145 | 152 | ||
| 146 | Change the theme and size of the cursor as well as set the `XCURSOR_THEME` and `XCURSOR_SIZE` environment variables. | 153 | Change the theme and size of the cursor as well as set the `XCURSOR_THEME` and `XCURSOR_SIZE` environment variables. |