Check if libubuntu_application_api.so exist, if not don't use it
commit5d924f51af3d300cb47960ec7e41f0f2d96d1fef
authorMarius Gripsgard <mariogrip@ubuntu.com>
dateFri 5 Jan 2018, 00:40 (9 years ago)
parent13344e6
data/unity8.conf+4−2
@@ -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