Blame SOURCES/xinitrc

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