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