flutter-ics-homescreen: work around Rive plugin issue 71/30871/3
authorScott Murray <scott.murray@konsulko.com>
Fri, 7 Mar 2025 07:36:01 +0000 (02:36 -0500)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 1 Apr 2025 19:54:47 +0000 (19:54 +0000)
Add a LD_PRELOAD of the Rive plugin library since it currently
fails to auto-load.  This fixes the HVAC animation behavior.

Bug-AGL: SPEC-5348

Change-Id: I8f6172305f3d695d47209b2503a99f79047d2ea2
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/30903
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
(cherry picked from commit 63b2f3a747d2149d846af179293907ef0732a111)
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/30871
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
recipes-demo/flutter-ics-homescreen/files/flutter-ics-homescreen.service

index be1acf5..bffcc43 100644 (file)
@@ -7,6 +7,8 @@ User=agl-driver
 EnvironmentFile=/etc/default/flutter
 EnvironmentFile=-/etc/default/flutter-ics-homescreen
 Environment=XDG_RUNTIME_DIR=/run/user/1001/
+# NOTE: Check if still required on flutter-auto upgrades post-3.27.1
+Environment=LD_PRELOAD=/usr/lib/librive_text.so
 ExecStart=/usr/bin/flutter-auto -b /usr/share/flutter/flutter_ics_homescreen/${FLUTTER_VERSION}/${FLUTTER_RUNTIME} --xdg-shell-app-id homescreen
 Restart=on-failure