Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78915 - ion3 should have a possibility to start ssh-agent
Summary: ion3 should have a possibility to start ssh-agent
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-21 01:05 UTC by Timo Boettcher
Modified: 2005-05-13 11:52 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 Timo Boettcher 2005-01-21 01:05:54 UTC
I have x11-wm/ion3-2004110 installed. 
However, I was unable to find a way to gracefully start ssh-agent (It seems that it has to be started BEFORE the wm, because only that way its environment-variables are inherited to the WM and all programs started in the WM), I had a look at other WM on how they did it. Gnome seems to start ssh-agendt from /etx/X11/Sessions/Gnome, so I fixed /etx/X11/Sessions/ion3 to do it, too. I don't know if this is the suggested method to do it, or if there are better ways...

it now looks like this:

===== /etc/X11/Sessions/ion3 =====
#!/bin/sh

command="/usr/bin/ion3"

sshagent=`which ssh-agent`
if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
    command="$sshagent -- $command"
fi

$command
==================================
Comment 1 Tom Payne (RETIRED) gentoo-dev 2005-01-25 14:53:17 UTC
Hmmm, I'm not sure that the session is the right location for this.

You can create custom .xsession file in your home directory and then choose a "Custom session" when you log in. Perhaps this would be a better place from which to launch ssh-agent? There's nothing about ion3 that requires ssh-agent, but if other window manager session do launch ssh-agent then perhaps ion3 should do the same.

Please close this bug with "INVALID" (not a bug) if you consider this a reasonable solution, otherwise comment and leave it open. I'll probably post a message to gentoo-desktop asking for advice.
Comment 2 Timo Boettcher 2005-01-29 05:10:10 UTC
This may be a possibility, but IMO it should be handled equally for all WMs. 
Comment 3 Tom Payne (RETIRED) gentoo-dev 2005-02-04 14:03:10 UTC
Mail posted to gentoo-desktop for feedback.
Comment 4 Tom Payne (RETIRED) gentoo-dev 2005-05-13 11:52:23 UTC
Hmmm, no opinion on gentoo-desktop.

For the moment I want to keep ion3 "pure": the user can create a custom .xsession if he wants to launch ssh-agent (or gpg-agent, or esd, or whatever...) at startup. If other WMs start doing this then I'll update ion3 too.

WONTFIX for the moment...