GDM does not set correct XDG_CURRENT_DESKTOP when logging in to different session
Test case:
- Start the computer.
- Log into the GNOME Classic session using GDM.
-
XDG_CURRENT_DESKTOP
isGNOME-Classic:GNOME
.
-
- Log out.
- Log into the normal GNOME session.
- The correct session is chosen: the process list shows
/usr/lib/gnome-session/gnome-session-binary --debug --systemd-service --session=gnome
. - But
XDG_CURRENT_DESKTOP
is stillGNOME-Classic:GNOME
while it should be justGNOME
.
- The correct session is chosen: the process list shows
I can also reproduce this with other sessions, e.g. GNOME Flashback.
This is with GNOME 3.33.90 from Debian experimental, using systemd session management.