Blame SOURCES/xinitrc

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