TIVI-248 & TIVI-267: remove -sharevts option from startx.
[profile/ivi/xorg-x11-server-misc.git] / i386-common / startx.in
1 #!/bin/sh
2
3 DISPLAY=":0"
4 XORG_CONF=" -config @DATADIR@/etc/X11/xorg.conf -configdir /opt/etc/X11/xorg.conf.d "
5 OTHER_OPTIONS=" -ac -noreset -r +accessx 0"
6
7 udevadm trigger --subsystem-match=input &
8
9 if [ -e ~/.xinitrc ]; then
10         XINITRC=~/.xinitrc
11 else
12         XINITRC=@PREFIX@/etc/X11/xinitrc
13 fi
14
15 XSERVER_OPTIONS=" ${DISPLAY} ${OTHER_OPTIONS} ${XORG_CONF} "
16
17 if [ "$1" = "--gdb" ]; then
18         gdb --args Xorg ${XSERVER_OPTIONS}
19 else    
20         if [ "$1" = "--only" ]; then
21                 Xorg ${XSERVER_OPTIONS} &
22         else
23                 xinit ${XINITRC} -- @PREFIX@/bin/Xorg ${XSERVER_OPTIONS} &
24         fi
25 fi    
26
27