diff options
author | Ray Strode <rstrode@redhat.com> | 2023-04-20 17:14:19 -0400 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2023-05-16 15:03:09 +0000 |
commit | 3503910fa447a399d9444c1b10da513bf3c0ccd8 (patch) | |
tree | 833dcf54fd8e21162368d8685df7f0950542db6e /pam-extensions/gdm-pam-extensions.h | |
parent | 23632753a6a8fed3f71441445afa23f53fb555ea (diff) | |
download | gdm-3503910fa447a399d9444c1b10da513bf3c0ccd8.tar.gz |
libgdm: Fix session loading precedence
One feature that GDM is supposed to support is a precedence order
for loading xsession files.
If someone has a file in /etc/X11/sessions it's supposed to override
a file in /usr/share/xsessions.
This works okay from a backend point of view. /etc/X11/sessions can
change the command getting run, for instance, but it doesn't work
from a front end point of view. Menu items can't get hidden in
the session cog.
This is due to a bug in libgdm where it inadvertently gives
/usr/share/xsessions higher precedence than /etc/X11/sessions.
This commit fixes that by processing the lists in reverse order,
and making sure to remove already added entries if overriding
entries are hidden.
Diffstat (limited to 'pam-extensions/gdm-pam-extensions.h')
0 files changed, 0 insertions, 0 deletions