@@ -45,11 +45,11 @@ pre-start script
4545
4646 initctl set-env --global MIR_SERVER_PROMPT_FILE=1
4747
48− # Disable Qt's stuttering 'touch compression' to fix scrolling smoothness
49− # issues (LP: #1486341, LP: #1556763). As a bonus, this eliminates most of
50− # the lag seen in the indicator panel pull-down (LP: #1488327) and also
51− # reduces lag seen in apps:
52− initctl set-env --global QML_NO_TOUCH_COMPRESSION=1
48+ #
49+ # Mir's input resampling is deprecated and going away soon. Turn it off
50+ # so we don't get a surprise change in behaviour when that happens.
51+ #
52+ initctl set-env --global MIR_CLIENT_INPUT_RATE=0
5353
5454 # Workaround for text not rendering correctly
5555 initctl set-env --global QT_ENABLE_GLYPH_CACHE_WORKAROUND=1
@@ -66,8 +66,10 @@ pre-start script
6666 fi
6767
6868 # HACK! WORKAROUND FOR HALIUM MISSING UBUNTU_PLATFORM_API
69− initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=test.so.3
70− initctl set-env --global UBUNTU_PLATFORM_API_SENSOR_TEST=/etc/ubuntusensors/test.sensors
69+ if [ ! -f /system/lib/libubuntu_application_api.so ]; then
70+ initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=test.so.3
71+ initctl set-env --global UBUNTU_PLATFORM_API_SENSOR_TEST=/etc/ubuntusensors/test.sensors
72+ fi
7173end script
7274
7375exec ${BINARY:-unity8} --mode=$MODE $ARGS