Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#!/bin/bash
2
# Copyright (C) 1999 - 2004 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
# xinitrc-common
12
#
13
# This is common code shared by both Xsession and xinitrc scripts.  Be sure
14
# to take this into account when fixing bugs or adding new functionality.
15
 
16
# Set up i18n environment
17
if [ -r /etc/profile.d/lang.sh ]; then
18
  . /etc/profile.d/lang.sh
19
fi
20
 
21
userresources=$HOME/.Xresources
22
usermodmap=$HOME/.Xmodmap
23
userxkbmap=$HOME/.Xkbmap
24
 
25
sysresources=/etc/X11/Xresources
26
sysmodmap=/etc/X11/Xmodmap
27
sysxkbmap=/etc/X11/Xkbmap
28
 
29
# merge in defaults
30
[ -r "$sysresources" ] && xrdb -nocpp -merge "$sysresources"
31
[ -r "$userresources" ] && xrdb -merge "$userresources"
32
 
33
# merge in keymaps
34
if [ -r "$sysxkbmap" ]; then
35
    setxkbmap $(cat "$sysxkbmap")
36
    XKB_IN_USE=yes
37
fi
38
 
39
if [ -r "$userxkbmap" ]; then
40
    setxkbmap $(cat "$userxkbmap")
41
    XKB_IN_USE=yes
42
fi
43
 
44
# xkb and xmodmap don't play nice together
45
if [ -z "$XKB_IN_USE" ]; then
46
    [ -r "$sysmodmap" ] && xmodmap "$sysmodmap"
47
    [ -r "$usermodmap" ] && xmodmap "$usermodmap"
48
fi
49
 
50
unset XKB_IN_USE
51
 
52
# run all system xinitrc shell scripts.
53
for file in /etc/X11/xinit/xinitrc.d/* ; do
54
        . $file
55
done
56
 
57
# Prefix launch of session with ssh-agent if available and not already running.
58
SSH_AGENT=
59
if [ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ]; then
60
    if [ "x$TMPDIR" != "x" ]; then
61
        SSH_AGENT="/usr/bin/ssh-agent /bin/env TMPDIR=$TMPDIR"
62
    else
63
        SSH_AGENT="/usr/bin/ssh-agent"
64
  fi
65
fi
66
 
67
CK_XINIT_SESSION=
68
if [ -x /usr/bin/ck-xinit-session -a -z "$XDG_SESSION_COOKIE" ]; then
69
    CK_XINIT_SESSION="/usr/bin/ck-xinit-session"
70
fi