gnome-session starts with an ssh-agent only on xorg, not on wayland
From the downstream bug report from Fedora 31
Description of problem: Inconsistent set up ssh-agent on Wayland vs. Xorg.
Version-Release number of selected component (if applicable): gnome-session-3.34.1-3.fc31.x86_64
How reproducible: 100%
Steps to Reproduce:
- Log in to GNOME with Wayland
- Notice you have no ssh-agent, or if you do, you have the one started from gnome-keyring
- Log out and log into GNOME with Xorg
- Notice you have an ssh-agent wrapping gnome-session, and if you have your GNOME session starting an ssh-agent with gnome-keyring, your ssh-agent connection is actually BROKEN!
Actual results: With Xorg, two ssh-agents and neither of them actually working. With Wayland, one ssh-agent and it works.
Expected results: One working ssh-agent.
Additional info: Here is gnome-session with wayland:
3732 ? Ssl 0:00 /usr/sbin/gdm
97657 ? Sl 0:00 \_ gdm-session-worker [pam/gdm-password]
97690 tty2 Ssl+ 0:00 \_ /usr/libexec/gdm-wayland-session /usr/bin/gnome-session
97693 tty2 Sl+ 0:00 \_ /usr/libexec/gnome-session-binary
and on Xorg:
3732 ? Ssl 0:00 /usr/sbin/gdm
110905 ? Sl 0:00 \_ gdm-session-worker [pam/gdm-password]
110967 tty2 Ssl+ 0:00 \_ /usr/libexec/gdm-x-session --run-script /usr/bin/gnome-session
110969 tty2 Sl+ 0:03 \_ /usr/libexec/Xorg vt2 -displayfd 3 -auth /run/user/1001/gdm/Xauthority -background none -noreset -keeptty -verbose 3
111031 tty2 Sl+ 0:00 \_ /usr/libexec/gnome-session-binary
111276 ? Ss 0:00 \_ /usr/bin/ssh-agent /bin/sh -c exec -l /bin/bash -c "/usr/bin/gnome-session"
This inconsistency means that your working environment is broken when switching back and forth between Wayland and Xorg.
Xorg is still necessary as there are applications which still do not work with Wayland.