Fix bug 164869
This commit is contained in:
parent
94e5ee4364
commit
00772e3779
7
Xsession
7
Xsession
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user