[Pkg-xfce-devel] Bug#470599: Bug#470599: /etc/xdg/xfce4/xinitrc ignores Xsession.options in handling ssh-agent

Yves-Alexis Perez corsac at debian.org
Wed Mar 12 10:21:03 UTC 2008


reassign 470599 xfce4-utils
kthxbye
On Wed, Mar 12, 2008 at 08:23:06AM +0000, Andrzej Novak wrote:
> In /etc/xdg/xfce4/xinitrc, I see:
> 
> # Use ssh-agent if installed and not already running.  Run it separately
> # so it populates the environment here, so we can clean it up later.
> 
> followed by lines of shell commands that accomplish just that.
> 
> However, I think xfce4's xinitrc should check whether use-ssh-agent is
> defined in /etc/X11/Xsession.options, if separate handling of ssh-agent
> by xfce4 is necessary at all (rather than, say, having
> /etc/X11/Xsession.d/90x11-common_ssh-agent deal with it).
> 
> At the moment, ssh-agent keeps getting killed on logout (esp. with use
> of graphical user login, where there is little chance to run ssh-agent
> before logging into xfce4), and users who use keychain usually expect
> ssh-agent to live longer than that (and can more easily change options
> in Xsession.options, rather than digging for these lines in xfce4's
> xinitrc).

Well, the thing is, ssh-agent should be detected running, and not started by
xfce4's xinitrc.

Here, the running ssh-agent is by Xsession stuff, not by xfce's xinitrc (the
line is like ssh-agent gpgagent --daemon ... dbus-launch --exit-with-session
startxfce4).

So ssh-agent is already running and is not run.

The "kill on logout" is not Xfce's fault either. Xsession runs it as part of
the session, so when the session is ended, ssh-agent is ended too.

Cheers,
-- 
Yves-Alexis





More information about the Pkg-xfce-devel mailing list