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