Add workaround for missing ubuntu platform api in halium
commit4d6b1af25594763cf7a1441699964fe648e575a3
authorMarius Gripsgard <marius@ubports.com>
dateSat 21 Oct 2017, 04:36 (9 years ago)
parentbbfe023
data/test.sensorsnew file+12
@@ -0,0 +1,12 @@
1+create light 0 10 1
2+create accel 0 1000 0.1
3+create proximity
4+
5+200 proximity near
6+500 light 5
7+# simulate crash on the ground
8+500 accel 0.2 0.1 10
9+100 accel 0.2 0.2 1000
10+20 accel 0 0 0
11+10 proximity far
12+10 light 10
data/unity8.conf+4
@@ -60,6 +60,10 @@ pre-start script
6060 else
6161 initctl set-env MODE=full-shell
6262 fi
63+
64+ # HACK! WORKAROUND FOR HALIUM MISSING UBUNTU_PLATFORM_API
65+ initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=test.so.3
66+ initctl set-env --global UBUNTU_PLATFORM_API_SENSOR_TEST=/etc/ubuntusensors/test.sensors
6367end script
6468
6569exec ${BINARY:-unity8} --mode=$MODE $ARGS
debian/unity8.install+1
@@ -4,6 +4,7 @@ data/unity8-dash.conf usr/share/upstart/sessions/
44data/unity8-filewatcher.conf usr/share/upstart/sessions/
55data/unity8.conf usr/share/upstart/sessions/
66data/devices.conf etc/ubuntu/
7+data/test.sensors etc/ubuntusensors/
78usr/bin/unity8
89usr/bin/unity8-dash
910usr/share/applications/unity8-dash.desktop