source: projects/specs/trunk/x/xorg-x11-xinit/xinitrc @ 10989

Revision 10989, 1.5 KB checked in by iwaim, 7 years ago (diff)

xorg-x11-xinit: add flies

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Copyright (C) 1999 - 2005 Red Hat, Inc. All rights reserved. This
3# copyrighted material is made available to anyone wishing to use, modify,
4# copy, or redistribute it subject to the terms and conditions of the
5# GNU General Public License version 2.
6#
7# You should have received a copy of the GNU General Public License
8# along with this program; if not, write to the Free Software
9# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
10#
11# Authors:
12#       Mike A. Harris <mharris@redhat.com>
13
14# Mandatorily source xinitrc-common, which is common code shared between the
15# Xsession and xinitrc scripts which has been factored out to avoid duplication
16. /etc/X11/xinit/xinitrc-common
17
18# The user may have their own clients they want to run.  If they don't,
19# fall back to system defaults.
20if [ -f $HOME/.Xclients ]; then
21    exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients || \
22    exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients
23elif [ -f /etc/X11/xinit/Xclients ]; then
24    exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients || \
25    exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients
26else
27    # Failsafe settings.  Although we should never get here
28    # (we provide fallbacks in Xclients as well) it can't hurt.
29    [ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'
30    [ -x /usr/bin/xclock ] && /usr/bin/xclock -geometry 100x100-5+5 &
31    [ -x /usr/bin/xterm ] && xterm -geometry 80x50-50+150 &
32    [ -x /usr/bin/twm ] && /usr/bin/twm
33fi
Note: See TracBrowser for help on using the repository browser.