6QML_PHONE_SHELL_PATH=./builddir/src/unity8
15 echo "usage: "$0" [OPTIONS]\n" >&2
16 echo "Script to run the shell.\n" >&2
18 echo " -f, --fake Force use of fake Qml modules." >&2
19 echo " -p, --pinlock Use a pin protected user." >&2
20 echo " -k, --keylock Use a passphrase protected user." >&2
21 echo " -l, --lightdm Use the specified lightdm mock." >&2
22 echo " -g, --gdb Run through gdb." >&2
23 echo " -h, --help Show this help." >&2
24 echo " -m, --nomousetouch Run without -mousetouch argument." >&2
29ARGS=`getopt -n$0 -u -a --longoptions="fake,pinlock,keylock,gdb,help,lightdm:,nomousetouch" -o "fpkl:ghm" -- "$@"`
36 -f|--fake) USE_MOCKS=true;;
37 -p|--pinlock) USE_MOCKS=true; LIGHTDM_MOCK=single-pin;;
38 -k|--keylock) USE_MOCKS=true; LIGHTDM_MOCK=single-passphrase;;
39 -l|--lightdm) LIGHTDM_MOCK=$2; shift;
40 if [ -z "$LIGHTDM_MOCK" ]; then
41 echo "Please specify an argument to --lightdm"
45 -m|--nomousetouch) MOUSE_TOUCH=false;;
51if [ -z "$LIGHTDM_MOCK" ]; then
55# Even without USE_MOCKS set, we want to fake our lightdm backend, because it's
56# annoying to be prompted for your password when testing. To get the same
57# backend used in production, pass '--lightdm=demo'.
58export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/builddir/tests/mocks/LightDM/$LIGHTDM_MOCK
61 rm -f $PWD/builddir/nonmirplugins/LightDM # undo symlink (from below) for cleanliness
62 export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$PWD/builddir/tests/mocks:$PWD/builddir/plugins:$PWD/builddir/modules
63 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/builddir/tests/mocks/libusermetrics
65 # Just link our LightDM mock into the nonmirplugins folder. We don't want
66 # the rest of our plugins to be used.
67 ln -sf $PWD/builddir/tests/mocks/LightDM $PWD/builddir/nonmirplugins/
70QML_PHONE_SHELL_ARGS=""
72 QML_PHONE_SHELL_ARGS="$QML_PHONE_SHELL_ARGS -mousetouch"
77 /sbin/initctl stop unity8
84 gdb -ex run --args $QML_PHONE_SHELL_PATH $QML_PHONE_SHELL_ARGS $@
86 status=`/sbin/initctl status unity8`
87 if [ "$status" != "unity8 stop/waiting" ]; then
88 echo "Unity8 is already running, please stop it first"
91 /sbin/initctl start unity8 BINARY="`readlink -f $QML_PHONE_SHELL_PATH` $QML_PHONE_SHELL_ARGS $@" QML2_IMPORT_PATH=$QML2_IMPORT_PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH
92 tailf -n 0 ~/.cache/upstart/unity8.log
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list