Bug 632304 - gdm starts ssh-agent wrongly for XFce
Summary: gdm starts ssh-agent wrongly for XFce
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: gdm
Version: 15
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-09 16:21 UTC by Felipe Contreras
Modified: 2012-02-02 19:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-02 19:49:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to let XFce determine whether to start an agent (502 bytes, patch)
2011-11-26 22:58 UTC, Daniel Hokka Zakrisson
no flags Details | Diff

Description Felipe Contreras 2010-09-09 16:21:35 UTC
version: gdm-2.30.2-1

XSession shouldn't start ssh-agent for XFCe, just like GNOME, since gnome-keyring-daemon deals with that, and it's started automatically.

Comment 1 Bug Zapper 2011-05-31 14:00:17 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Fedora Admin XMLRPC Client 2011-06-21 15:31:48 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora Admin XMLRPC Client 2011-06-21 15:33:48 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2011-06-21 15:36:36 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2011-06-21 15:39:49 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2011-06-21 15:49:17 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin XMLRPC Client 2011-06-21 15:51:47 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora Admin XMLRPC Client 2011-06-21 15:54:19 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Fedora Admin XMLRPC Client 2011-06-21 15:55:26 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Peter C 2011-11-25 03:38:25 UTC
Yes.  I can confirm that this is still a problem in Fedora 16.  It's rather annoying as it means that the passphrase for SSH keys is not taken from the gnome-keyring -- it asks you every time.

I *think* the problem stems from,

/etc/xdg/xfce4/xinitrc

Possibly somewhere around,

...
    # ignore stale ssh-agents
    if test "$SSH_AGENT_PID"; then
        if ! kill -0 $SSH_AGENT_PID; then
            unset SSH_AGENT_PID
            unset SSH_AUTH_SOCK
        fi
    fi
...

which I suspect overrides the gnome-keyring settings.  But it's probably a bit of a stab in the dark.  Can anyone else shed some light on this?

Comment 11 Daniel Hokka Zakrisson 2011-11-26 22:58:37 UTC
Created attachment 536936 [details]
Patch to let XFce determine whether to start an agent

This patch fixes the issue for me, combined with running:
xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -s false -t bool
to disable XFce's ssh-agent starting.

Comment 12 Peter C 2011-11-28 01:21:58 UTC
Thanks, Daniel.  But this patch + command did not work for me.

Peter.

Comment 13 Peter C 2011-12-05 01:37:16 UTC
FYI.  This is a wider problem than I first thought.  More information can be found at the following locations,

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646938
https://bugzilla.xfce.org/show_bug.cgi?id=8014

One workaround that I can confirm works is to "Launch GNOME services on startup" in the Xfce "Session and Startup" settings under the "Advanced" tab.  But this is a really bloated way of addressing this problem.

What I did was add the following to my ~/.bashrc

export `/usr/bin/gnome-keyring-daemon --start --components=ssh`

which seems to work quite nicely.

Comment 14 Peter C 2011-12-05 03:20:06 UTC
Correction, this is better placed in ~/.bash_profile rather than ~/.bashrc -- but both would work.

Comment 15 Felipe Contreras 2011-12-05 16:04:22 UTC
I don't think that would work, because AFAIK, those are sourcerd very late in the process.

Probably ~/.profile would work, if this is applied:
https://bugzilla.redhat.com/show_bug.cgi?id=551508

But wouldn't it be better to just take gnome-keyring-daemon, and strip it down to have something generic that Xfce can depend on?

Comment 16 Peter C 2011-12-05 21:24:31 UTC
(In reply to comment #15)
> I don't think that would work, because AFAIK, those are sourcerd very late in
> the process.

I was just posting what worked for me in the hope that it might help someone else.

> Probably ~/.profile would work, if this is applied:
> https://bugzilla.redhat.com/show_bug.cgi?id=551508
> 
> But wouldn't it be better to just take gnome-keyring-daemon, and strip it down
> to have something generic that Xfce can depend on?

Of course...  But until this is done (and I won't be holding my breath), a workaround is required.

Comment 17 Felipe Contreras 2012-02-02 19:49:17 UTC
Looks like Fedora developers don't care about Xfce.


Note You need to log in before you can comment on or make changes to this bug.