Fix bug 164869

This commit is contained in:
Soren Sandmann Pedersen 2007-07-29 23:09:50 +00:00
parent 94e5ee4364
commit 00772e3779
2 changed files with 23 additions and 17 deletions

View File

@ -55,20 +55,21 @@ case $# in
;;
gnome)
exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH gnome-session"
exec $SSH_AGENT /bin/sh -c "exec -l $SHELL -c \"$DBUS_LAUNCH gnome-session\""
;;
kde|kde1|kde2)
exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH startkde"
exec $SSH_AGENT /bin/sh -c "exec -l $SHELL -c \"$DBUS_LAUNCH startkde\""
;;
twm)
# fall back to twm
exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH twm"
exec $SSH_AGENT /bin/sh -c "exec -l $SHELL -c \"DBUS_LAUNCH twm\""
;;
*)
# GDM provies either a command line as the first argument or
# provides 'failsafe', 'default' or 'custom'. KDM will do the
# same at some point
if [ "$1" != "default" -a "$1" != "custom" ]; then
exec -l $SHELL -c "$SSH_AGENT $DBUS_LAUNCH $1"
exec $SSH_AGENT /bin/sh -c "exec -l $SHELL -c \"$DBUS_LAUNCH $1\""
fi
;;
esac

View File

@ -110,6 +110,11 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/xinit.1*
%changelog
* Sun Jul 29 2007 Soren Sandmann <sandmann@redhat.com> 1.0.2-23
- Fix Xsession to run the login shell inside the setgid ssh-agent, rather
than the other way around. This preserves LD_LIBRARY_PRELOAD.
Patch from Stefan Becker, bug 164869.
* Fri Jul 27 2007 Soren Sandmann <sandmann@redhat.com> 1.0.2-22
- Remove xinput.sh. Bug 244963.