3c2b0c
#!/bin/sh
3c2b0c
# Copyright (C) 1999 - 2005 Red Hat, Inc. All rights reserved. This
3c2b0c
# copyrighted material is made available to anyone wishing to use, modify,
3c2b0c
# copy, or redistribute it subject to the terms and conditions of the
3c2b0c
# GNU General Public License version 2.
3c2b0c
#
3c2b0c
# You should have received a copy of the GNU General Public License
3c2b0c
# along with this program; if not, write to the Free Software
3c2b0c
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
3c2b0c
#
3c2b0c
# Authors:
3c2b0c
#	Mike A. Harris <mharris@redhat.com>
3c2b0c
3c2b0c
# Mandatorily source xinitrc-common, which is common code shared between the
3c2b0c
# Xsession and xinitrc scripts which has been factored out to avoid duplication
3c2b0c
. /etc/X11/xinit/xinitrc-common
3c2b0c
3c2b0c
# The user may have their own clients they want to run.  If they don't,
3c2b0c
# fall back to system defaults.
3c2b0c
if [ -f $HOME/.Xclients ]; then
3c2b0c
    exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients || \
3c2b0c
    exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients
3c2b0c
elif [ -f /etc/X11/xinit/Xclients ]; then
3c2b0c
    exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients || \
3c2b0c
    exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients
3c2b0c
else
3c2b0c
    # Failsafe settings.  Although we should never get here
3c2b0c
    # (we provide fallbacks in Xclients as well) it can't hurt.
3c2b0c
    [ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'
3c2b0c
    [ -x /usr/bin/xclock ] && /usr/bin/xclock -geometry 100x100-5+5 &
3c2b0c
    [ -x /usr/bin/xterm ] && xterm -geometry 80x50-50+150 &
3c2b0c
    [ -x /usr/bin/twm ] && /usr/bin/twm
3c2b0c
fi