Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 692648

Summary: gnome-base/gdm : xinitrc.d/50-ssh-agent should not modify ${command} variable
Product: Gentoo Linux Reporter: Alexander Tsoy <alexander>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Alexander Tsoy 2019-08-20 22:20:02 UTC
xinitrc.d scripts should not modify ${command} variable. The only exception is "80-dbus" script from sys-apps/dbus. The following is caused by xinitrc.d/50-ssh-agent script:

/etc/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- /usr/bin/gnome-session

$ pgrep -a ssh-agent
1814 /usr/bin/ssh-agent -- /usr/bin/gnome-session

I don't quite understand how this doesn't prevent gnome-session from starting. %) Maybe it is starting via /etc/X11/Sessions/Gnome or /etc/X11/xinit/xinitrc scripts (50-ssh-agent do nothing on second run because SSH_AUTH_SOCK is defined).
Comment 1 Alexander Tsoy 2019-08-20 22:47:33 UTC
(In reply to Alexander Tsoy from comment #0)
> The only exception is "80-dbus" script from sys-apps/dbus.
And consolekit of course.
Comment 2 Matt Turner gentoo-dev 2021-04-30 15:21:59 UTC
Suggest a fix?
Comment 3 Larry the Git Cow gentoo-dev 2021-04-30 16:08:47 UTC
The bug has been closed via the following commit(s):

commit b7cbef6cf8bcca85cbb0594e62226c8a6a262b69
Author:     Matt Turner <>
AuthorDate: 2021-04-30 02:27:41 +0000
Commit:     Matt Turner <>
CommitDate: 2021-04-30 16:08:16 +0000

    gnome-base/gdm: Version bump to 40.0
    * Drop 49-keychain and 50-ssh-agent files (bugs #549102, #692648)
    * Switch to Meson (resolves bug #585976)
    ** Remove unnecessary fontconfig, libXext, iso-codes, libgudev,
       libXinerama dependencies
    * Remove unused introspection, smartcard, xinerama USE flags
    * Depend on xorg-server[-minimal] (bug #660546)
    * Resolve bug #613222, resolved upstream in v40.0
    * Resolve bug #733708, resolved upstream in v3.38
    Signed-off-by: Matt Turner <>

 gnome-base/gdm/Manifest                            |   1 + | 211 +++++++++++++++++++++
 gnome-base/gdm/gdm-40.0.ebuild                     | 207 ++++++++++++++++++++
 3 files changed, 419 insertions(+)