You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prepare for removal of transient session vars from activation environment
In future releases the following variables will be omitted:
XDG_VTNR, XDG_SESSION_ID, XDG_SESSION_PATH, XDG_SEAT, XDG_SEAT_PATH.
These are transient variables that make sense only for a specific session
among others (graphical or otherwise) and should not be placed in activation
environment.
This is in contrast to vars like XDG_CURERNT_DESKTOP which are relevant to one
and only graphical session and may inform other sessions and environments on
what's going on there.
The problem though is that those vars are useful to have at hand. This commit
creates alternative way of propagaitng them to compositor and further:
* compositor's service `EnvironmentFile=` directive and a file for it.
* `uwsm app` now transmits them via `--setenv` arg to service units it
launches.
Currently overall behavior is unchanged by default, the new mechanism is
redundant. In future releases these vars will be moved from `always_export` set
to `never_export` and `always_unset` sets. This behavior can be tested by adding
`UWSM_NO_SESSION_SPECIFIC_VARS=true` directly to activation environment
before `uwsm start`.
Reference for var exclusion in GNOME and MATE session managers:
https://gitlab.gnome.org/GNOME/gnome-session/-/issues/86mate-desktop/mate-session-manager#282
0 commit comments