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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « session_manager.sh ('k') | start_wm.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: start_login.sh
diff --git a/start_login.sh b/start_login.sh
index b468700b7af03710aff68ce3c51b7e04c36fe83d..acc9d853d1b3b94d8c596c83745bf707204a4b46 100755
--- a/start_login.sh
+++ b/start_login.sh
@@ -1,12 +1,21 @@
#!/bin/sh
-export USER=chronos
+# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# ${USER} defined in /etc/init.d/session_manager
+# ${DATA_DIR} defined in /etc/init.d/session_manager
export LOGNAME=${USER}
export SHELL=/bin/bash
-export HOME=/home/${USER}
+export HOME=${DATA_DIR}/user
export DISPLAY=:0.0
export PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11
-export XAUTHORITY=${HOME}/.Xauthority
-/usr/bin/xauth -q -f $HOME/.Xauthority add :0 . $1
-exec /usr/bin/ck-launch-session /etc/X11/chromeos-xsession
+XAUTH_FILE=${DATA_DIR}/.Xauthority
+export XAUTHORITY=${XAUTH_FILE}
+
+mkdir -p ${HOME}
+/usr/bin/xauth -q -f ${XAUTH_FILE} add :0 . $1
+exec /usr/bin/chromeos-chrome-login 2>> ${DATA_DIR}/login_mgr.log
+
« 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