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

Unified Diff: start_wm.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 | « start_login.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: start_wm.sh
diff --git a/start_wm.sh b/start_wm.sh
new file mode 100755
index 0000000000000000000000000000000000000000..ccfb417ce79cb1b86bcee6870e05e81d627ddd4e
--- /dev/null
+++ b/start_wm.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+BACKGROUND_FILE=background_1024x600.png
+if [ -e /tmp/use_ugly_x_cursor ]; then
+ BACKGROUND_FILE=background_1024x600_retro.png
+fi
+
+WM=/usr/bin/chromeos-wm
+IMAGES=/usr/share/chromeos-assets/images
+BACKGROUND="${IMAGES}/${BACKGROUND_FILE}"
+LOG_DIR="${HOME}/log"
+XTERM_COMMAND="/usr/bin/xterm -bg black -fg grey"
+
+# TODO(cmasone): figure out where the ibus stuff should go.
+# Start IBus daemon so users can input CJK characters.
+# TODO(yusukes): should not launch ibus-daemon when no IME is configured.
+# export GTK_IM_MODULE=ibus
+# (sleep 5; /usr/bin/ibus-daemon) &
+/usr/bin/xscreensaver -no-splash &
+/usr/sbin/omaha_tracker.sh &
+
+cd "${HOME}"
+exec "${WM}" \
+ --hotkey_overlay_image_dir="${IMAGES}" \
+ --panel_anchor_image="${IMAGES}/panel_anchor.png" \
+ --panel_bar_image="${IMAGES}/panel_bar_bg.png" \
+ --shadow_image_dir="${IMAGES}" \
+ --wm_background_image="${BACKGROUND}" \
+ --wm_xterm_command="${XTERM_COMMAND}" \
+ --log_dir="${LOG_DIR}"
« no previous file with comments | « start_login.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698