summaryrefslogtreecommitdiff
path: root/pam-extensions/gdm-pam-extensions.h
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2023-04-20 17:14:19 -0400
committerRay Strode <halfline@gmail.com>2023-05-16 15:03:09 +0000
commit3503910fa447a399d9444c1b10da513bf3c0ccd8 (patch)
tree833dcf54fd8e21162368d8685df7f0950542db6e /pam-extensions/gdm-pam-extensions.h
parent23632753a6a8fed3f71441445afa23f53fb555ea (diff)
downloadgdm-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