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

2008-03-12 Thread novakyu
On Wed, Mar 12, 2008 at 3:21 AM, Yves-Alexis Perez <[EMAIL PROTECTED]> wrote:
>  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).

I should have clarified. I already edited Xsession.options to comment
out use-ssh-agent, but even then, ssh-agent kept getting "mysteriously"
killed, until I found xfce4's xinitrc that has its own ssh-agent-related
lines, which does its own thing with ssh-agent, if ssh-agent isn't run
with the common Xsession script.

And that's what I considered a bug---xfce4's xinitrc is not working with
the rest of the X: if the user wants ssh-agent launched with X and has
use-ssh-agent defined, then xfce4's xinitrc is not doing anything useful
in that regard, and if the user does not want ssh-agent launched with X
(i.e. use-ssh-agent is not defined in Xsession.options), xfce4 launches
ssh-agent anyway and kills it on exit.

Regards,

Andrzej



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



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

2008-03-12 Thread Yves-Alexis Perez
reassign 470599 xfce4-utils
kthxbye
On Wed, Mar 12, 2008 at 08:23:06AM +, 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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]