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