/etc/X11/gdm/Xsession uses #!/bin/sh yet later sources $HOME/.bash_profile if it exists. This causes login to fail if .bash_profile uses bashisms. Xsession should either use #!/bin/bash or not source source .bash_profile. Reproducible: Always
We spoke about this a few days ago with remi` on irc and we came up with the following: this sourcing and ssh-agent startup really doesn't need to be in gdm scripts, it's more something that has to do with general X startup hence should go into /etc/X11/xinitrc/xinitrc.d/ so that everybody can benefit of it. Technically, the keychain stuff should be provided by the keychain ebuild and the ssh-agent one by the openssh ebuild. Then we could clean up this mess in gdm scripts. CCing concerned people to get some input.
(In reply to comment #1) > Technically, the keychain stuff should be provided by the keychain ebuild and > the ssh-agent one by the openssh ebuild. Then we could clean up this mess in > gdm scripts. > Please also consider adding support for gpg-agent, including it's --enable-ssh-support option.
*** Bug 258495 has been marked as a duplicate of this bug. ***
gdm-2.20.10 got its patch to Xsession split out. ssh-agent and keychain loading are now xinitrc.d scripts which can be disabled at will and specify which shell they need upfront. I'm not closing this bug for now because I'd like to see some suggestions for improvments from implied parties.
looks like nobody cares, closing.
*** Bug 295730 has been marked as a duplicate of this bug. ***