2# -*- Mode: sh; indent-tabs-mode: nil; tab-width: 2 -*-
4# Ensure the shell always gets unthrottled touch events, so that applications
5# who want full speed low-latency input can get it (LP: #1497105) and so that
6# apps can use QML touch compression safely (the QML touch compression
7# algorithm does not support nesting well - LP: #1486341, LP: #1556763 - so
8# must be fed by the raw input event stream from Unity8).
9export QML_NO_TOUCH_COMPRESSION=1
11export MIR_SERVER_PROMPT_FILE=1
13# Hard code socket path because our snappy apparmor profile
14# only lets us put the socket in one place. And consumers expect it there.
15# (XDG_RUNTIME_DIR isn't typical under snappy)
16export MIR_SERVER_FILE=/run/user/$(id -u)/mir_socket
18rm -f "$MIR_SERVER_FILE"
19rm -f "${MIR_SERVER_FILE}_trusted"
21if [ "$XDG_SESSION_DESKTOP" = "ubuntu-touch" ]; then
22 # On Ubuntu Touch, we currently use a trick where we auto-login the
23 # user without a LightDM greeter at all. In this case, we want to
24 # start with the lockscreen visible. Once we switch to using a
25 # proper greeter for the first login, we can remove this code path.
31# Add options for settings
32if [ -f ~/.unity8/configs.conf ]; then
33 source ~/.unity8/configs.conf
37isfloat='^[0-9]+([.][0-9]+)?$'
39if [[ $SCALE =~ $isfloat ]]; then
40 if ! [ $SCALE == "0" ]; then
41 export GRID_UNIT_PX=$(LC_ALL=C printf %.0f $((8 * ${SCALE})))
42 export QT_WAYLAND_FORCE_DPI=$(LC_ALL=C printf %.0f $((96 * ${SCALE})))
46if [[ $GRID_UNIT_PX =~ $isint ]]; then
47 dbus-update-activation-environment --systemd GRID_UNIT_PX=${GRID_UNIT_PX}
50if [[ $QT_WAYLAND_FORCE_DPI =~ $isint ]]; then
51 dbus-update-activation-environment --systemd QT_WAYLAND_FORCE_DPI=${QT_WAYLAND_FORCE_DPI}
54# Tell unity-mir to raise SIGSTOP after we start, which we use to tell
55# systemd when we are done starting up.
56export UNITY_MIR_EMITS_SIGSTOP=1
59dbus-update-activation-environment --systemd QT_QPA_PLATFORM=wayland
60dbus-update-activation-environment --systemd GDK_BACKEND=wayland
61dbus-update-activation-environment --systemd SDL_VIDEODRIVER=wayland
62dbus-update-activation-environment --systemd UNITY8_SHELL_QT_QPA_PLATFORM=mirserver
63dbus-update-activation-environment --systemd QT_WAYLAND_DISABLE_WINDOWDECORATION=1
64dbus-update-activation-environment --systemd QT_ACCESSIBILITY=1
65dbus-update-activation-environment --systemd QT_AUTO_SCREEN_SCALE_FACTOR=0
66dbus-update-activation-environment --systemd GTK_CSD=0
68# We need to be sure we dont use mir-on-mir
69unset MIR_SERVER_HOST_SOCKET
72QT_QPA_PLATFORM=${UNITY8_SHELL_QT_QPA_PLATFORM} ${BINARY:-unity8} --mode=$MODE "$@" &
75# Wait for SIGSTOP in child
76while [ $(ps --no-headers -o state $child) != "T" ]; do
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