| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 export USER=chronos | 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # ${USER} defined in /etc/init.d/session_manager |
| 8 # ${DATA_DIR} defined in /etc/init.d/session_manager |
| 4 export LOGNAME=${USER} | 9 export LOGNAME=${USER} |
| 5 export SHELL=/bin/bash | 10 export SHELL=/bin/bash |
| 6 export HOME=/home/${USER} | 11 export HOME=${DATA_DIR}/user |
| 7 export DISPLAY=:0.0 | 12 export DISPLAY=:0.0 |
| 8 export PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11 | 13 export PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11 |
| 9 export XAUTHORITY=${HOME}/.Xauthority | |
| 10 | 14 |
| 11 /usr/bin/xauth -q -f $HOME/.Xauthority add :0 . $1 | 15 XAUTH_FILE=${DATA_DIR}/.Xauthority |
| 12 exec /usr/bin/ck-launch-session /etc/X11/chromeos-xsession | 16 export XAUTHORITY=${XAUTH_FILE} |
| 17 |
| 18 mkdir -p ${HOME} |
| 19 /usr/bin/xauth -q -f ${XAUTH_FILE} add :0 . $1 |
| 20 exec /usr/bin/chromeos-chrome-login 2>> ${DATA_DIR}/login_mgr.log |
| 21 |
| OLD | NEW |