| #!/bin/bash |
| # Copyright (c) 2009-2010 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. |
| |
| # This script launches the window manager on the local X server |
| # running on display :1.0 on a regular Ubuntu machine. You need to |
| # start the other X server from a pty that isn't in an xterm with the |
| # command "xinit -- :1". You have to build wm from within the chroot |
| # environment using scons on the command line (not using the building |
| # scripts). |
| |
| # This script is only for use during development to get some rapid |
| # feedback without having to install on a device. |
| |
| # By default, this script runs WITHOUT clutter, at least for now. |
| |
| script_dir=$PWD/$(dirname $0) |
| chroot_dir=$script_dir/../../../chroot |
| |
| echo "Switch to the X Server running on display $DISPLAY NOW!" |
| echo "4..." |
| sleep 1 |
| echo "3..." |
| sleep 1 |
| echo "2..." |
| sleep 1 |
| echo "1..." |
| sleep 1 |
| echo "Starting wm!" |
| |
| xprop -display :1 -root -f _CHROME_LOGGED_IN 32i -set _CHROME_LOGGED_IN 1 |
| |
| export LD_LIBRARY_PATH=/lib32:/usr/lib32:$script_dir/../../../chroot/build/x86-generic/lib:$script_dir/../../../chroot/build/x86-generic/usr/lib:$LD_LIBRARY_PATH |
| export DISPLAY=:1.0 |
| export IMAGES=$script_dir/../assets/images |
| |
| $script_dir/wm --logged_in_log_dir=$PWD --logged_out_log_dir=$PWD --background_image="$IMAGES/background_1024x600.png" "$@" |