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 " -g, --gdb Run through gdb." >&2
22 echo " -h, --help Show this help." >&2
23 echo " -m, --nomousetouch Run without -mousetouch argument." >&2
28ARGS=`getopt -n$0 -u -a --longoptions="fake,pinlock,keylock,gdb,help,nomousetouch" -o "fpkghm" -- "$@"`
35 -f|--fake) FAKE=true; USE_MOCKS=true;;
36 -p|--pinlock) PINLOCK=true; USE_MOCKS=true;;
37 -k|--keylock) KEYLOCK=true; USE_MOCKS=true;;
40 -m|--nomousetouch) MOUSE_TOUCH=false;;
47 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/builddir/tests/mocks/libusermetrics:$PWD/builddir/tests/mocks/LightDM/single
51 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/builddir/tests/mocks/libusermetrics:$PWD/builddir/tests/mocks/LightDM/single-pin
55 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/builddir/tests/mocks/libusermetrics:$PWD/builddir/tests/mocks/LightDM/single-passphrase
59 rm -f $PWD/builddir/nonmirplugins/LightDM # undo symlink (from below) for cleanliness
60 export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$PWD/builddir/tests/mocks:$PWD/builddir/plugins:$PWD/builddir/modules
62 # Still fake no-login user for convenience (it's annoying to be prompted for your password when testing)
63 # And in particular, just link our LightDM mock into the nonmirplugins folder. We don't want the rest of
64 # our plugins to be used.
65 ln -s $PWD/builddir/tests/mocks/LightDM $PWD/builddir/nonmirplugins/
66 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/builddir/tests/mocks/LightDM/single
69QML_PHONE_SHELL_ARGS=""
71 QML_PHONE_SHELL_ARGS="$QML_PHONE_SHELL_ARGS -mousetouch"
76 /sbin/initctl stop unity8
83 gdb -ex run --args $QML_PHONE_SHELL_PATH $QML_PHONE_SHELL_ARGS $@
85 status=`/sbin/initctl status unity8`
86 if [ "$status" != "unity8 stop/waiting" ]; then
87 echo "Unity8 is already running, please stop it first"
90 /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
91 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