Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: start_login.sh

Issue 479011: Scripts to use chrome as a login manager (Closed)
Patch Set: revert to /dev/urandom Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « session_manager.sh ('k') | start_wm.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « session_manager.sh ('k') | start_wm.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698