Blame SOURCES/xinitrc

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