@EndlessYung
Eventually this could be a bug in EOS Gnome 3.38. The instructions which were valid in the 3.8 series (Gnome 3.36) no longer work, even if they should still be valid in 3.38.
/edit
Workaround until Bug gets fixed
- Open a Terminal and make yourself root
sudo bash
- Then execute the following (just copy/paste the whole bunch into the Terminal)
mkdir -p /usr/local/bin /usr/local/share/applications
cat << EOF | sudo tee /usr/local/bin/switch.sh
#!/bin/bash
# lock the current screen session
loginctl lock-session
# tell gdm to switch session
gdbus call \
--system \
--object-path /org/gnome/DisplayManager/LocalDisplayFactory \
--dest org.gnome.DisplayManager \
--method org.gnome.DisplayManager.LocalDisplayFactory.CreateTransientDisplay \
2>/dev/null 1>&2
EOF
cat << EOF | sudo tee /usr/local/share/applications/switch.desktop
[Desktop Entry]
Name=Switch User Session
Type=Application
Icon=gcr-key
Exec=/usr/local/bin/switch.sh
Terminal=true
Categories=System
EOF
chmod +x /usr/local/bin/switch.sh
chmod +x /usr/local/share/applications/switch.desktop
gio set /usr/local/share/applications/switch.desktop metadata::trusted yes
- Reboot
Now you fill find a new Entry in the applications list for every user:
When activated, it locks the current session and puts you on the GDM Login Screen where you can log in with another user. If you want to switch back, either log out or run the Switch User Session
Application again.