On 21/05/12 11:24, [email protected] wrote:
Hi Tom,
Very interesting find indeed. BTW, would you mind sharing these custom
sessions (especially the one with the real openssh agent)?
Sure but it's really very simple stuff.
Here's the one for running the real ssh agent:
$ cat /usr/share/xsessions/sshagent.desktop
[Desktop Entry]
Name=GNOME with ssh-agent
Comment=This session logs you into GNOME
Exec=/usr/local/bin/mygs
Icon=
Type=Application
$ cat /usr/local/bin/mygs
#!/bin/sh
exec -l /usr/bin/ssh-agent /bin/sh -c "exec -l gnome-session"
I suppose it would somehow be possible to embed this in the desktop file
directly but I was not able to devise the right format for it, hence
this little wrapper instead.
Ofcourse you'll then want to disable the ssh agent function in
gnome-keyring, it can be done when logged in like this:
$ gconftool-2 -s --type bool /apps/gnome-keyring/daemon-components/ssh false
For the ~/.Xclients session I just do 'Exec=$HOME/.Xclients' in the
session desktop file.
-tgc
_______________________________________________
rhelv6-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv6-list