Bugzilla – Bug 5078
set session class and type
Last modified: 2014-05-05 15:56:36
You need to
before you can comment on or make changes to this bug.
There are some new environment variables that are expected in modern sessions:
XDG_SESSION_CLASS and XDG_SESSION_TYPE. They are documented here:
Fortunately they will always have the same value for us, so we can hard code
They should unfortunately be set before PAM is run though, so we need to do the
work in either vsmagent or tl-session. tl-session already has some magic to
please pam_systemd, so it might be the best choice.
Fixed in r28881. The pam_systemd in Fedora 20 hasn't been updated to look at
these, so we can't fully test this. So the tester should merely check that
these are set in the session.
Verified using build 4332 that env was set correctly within a session.
$export | grep XDG | grep -E 'TYPE|CLASS'
declare -x XDG_SESSION_CLASS="user"
declare -x XDG_SESSION_TYPE="x11"