on xenial help sign in
Check if libubuntu_application_api.so exist, if not don't use it
commitf5b66001c04fff0c3e02037f5b6d4724ef998b36 authorMarius Gripsgard <mariogrip@ubuntu.com> dateFri 5 Jan 2018, 00:40 (9 years ago) parent176fd34
1 file changed+4−2
data/unity8.conf+4−2
data/unity8.conf+4−2
@@ -78,8 +78,10 @@ pre-start script
7878 fi
7979
8080 # HACK! WORKAROUND FOR HALIUM MISSING UBUNTU_PLATFORM_API
81− initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=test.so.3
82− initctl set-env --global UBUNTU_PLATFORM_API_SENSOR_TEST=/etc/ubuntusensors/test.sensors
81+ if [ ! -f /system/lib/libubuntu_application_api.so ]; then
82+ initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=test.so.3
83+ initctl set-env --global UBUNTU_PLATFORM_API_SENSOR_TEST=/etc/ubuntusensors/test.sensors
84+ fi
8385end script
8486
8587exec ${BINARY:-unity8} --mode=$MODE $ARGS