Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349702 - gnome-base/gnome-keyring: add support for ssh agent at session startup
Summary: gnome-base/gnome-keyring: add support for ssh agent at session startup
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://live.gnome.org/GnomeKeyring/Ssh
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-25 17:52 UTC by Florian Steinel
Modified: 2022-05-23 19:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Steinel 2010-12-25 17:52:20 UTC
Test in 50-ssh-agent for gnome-keyring ssh-agent via gconf, this works only for <=gnome-base/gnome-2.30.* 
(see http://mail.gnome.org/archives/gnome-keyring-list/2010-November/msg00001.html )
-- /usr/portage/gnome-base/gdm/files/50-ssh-agent      2009-07-27 00:37:45.000000000 +0200
+++ /etc/X11/xinit/xinitrc.d/50-ssh-agent       2010-12-25 18:43:51.000000000 +0100
@@ -1,9 +1,14 @@
 #!/bin/sh
 
-# add ssh-agent if found
+# add ssh-agent if found and gnome-keyring ssh component is disabled
 
+gkr="`which gnome-keyring`"
+gkr_ssh="`gconftool-2 --get /apps/gnome-keyring/daemon-components/ssh`"
 sshagent="`which ssh-agent`"
-if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
+
+if [ -n "$gkr" ] && [ -x "$gkr" ] && [ "$gkr_ssh" == "true" ]; then
+       echo "$0: using gnome-keyring, disable via gconf /apps/gnome-keyring/daemon-components/ssh "
+elif [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
        command="$sshagent -- $command"
 elif [ -z "$sshagent" ] ; then
        echo "$0: ssh-agent not found!"

(Maybe look at ubuntus 90×11-common_ssh-agent file?)

Reproducible: Always

Steps to Reproduce:
Comment 1 Florian Steinel 2010-12-25 18:23:08 UTC
http://packages.ubuntu.com/de/natty/all/x11-common/filelist
90×11-common_ssh-agent

starting ssh-agent in ubuntu is controlled via the Xsession.options.
Maybe a einfo in gnome-base/gnome-keyring:
Disable /etc/X11/xinit/xinitrc.d/50-ssh-agent if you want gnome-keyring to take over ssh-agent function.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-27 10:32:52 UTC
This is not how it is going to be done, but it is something I had on the back-burner as well.
Comment 3 Pacho Ramos gentoo-dev 2013-08-24 13:05:04 UTC
(In reply to Gilles Dartiguelongue from comment #2)
> This is not how it is going to be done, but it is something I had on the
> back-burner as well.

Gilles, any news about this? (with much newer 3.8.x...) Thanks :)
Comment 4 Pacho Ramos gentoo-dev 2014-11-13 11:33:11 UTC
In summary, that files don't belong to gnome-keyring neither gdm, they belong to ssh... I think there is another bug about this but I don't remember its summary or similar and I haven't found it :S
Comment 5 Larry the Git Cow gentoo-dev 2022-05-23 19:45:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed1cdb81ebf7720272c44661174898f58766c125

commit ed1cdb81ebf7720272c44661174898f58766c125
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-05-23 19:25:15 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-05-23 19:45:31 +0000

    gnome-base/gnome-keyring: Version bump to 42.1
    
    * Add IUSE=systemd to enable socket-activated gnome-keyring-daemon
      (bug #349702)
    
    Bug: https://bugs.gentoo.org/349702
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 gnome-base/gnome-keyring/Manifest                  |  1 +
 gnome-base/gnome-keyring/gnome-keyring-42.1.ebuild | 80 ++++++++++++++++++++++
 2 files changed, 81 insertions(+)