From: Chanwoo Choi Date: Fri, 21 Mar 2025 08:42:12 +0000 (+0900) Subject: hal-backend-service: Add EnvironmentFile=/run/xdg-root-env to use libtbm X-Git-Tag: accepted/tizen/unified/20250326.130857^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5133b7c1cb1f4d6f6760dbd0be9e79152044575f;p=platform%2Fhal%2Fapi%2Fcommon.git hal-backend-service: Add EnvironmentFile=/run/xdg-root-env to use libtbm Add EnvironmentFile=/run/xdg-root-envto hal-backend-service process because hal-backend-service plugin might want to use libtbm (Tizen Buffer Manager) for handling buffer such as graphics, camera, codec buffers. Require the XDG_RUNTIME_DIR environment variable if hal-backend-service plugin uses libtbm library. But, XDG_RUNTIME_DIR environment variable is not added to /run/tizen-system-env or global exported environment data. Instead, enlightenment exports XDG_RUNTIME_DIR environment variable to /run/xdg-root-env file. Change-Id: I1ebf726ae1bf3e3d9a0bbe83cf28f3b5efb798e4 Signed-off-by: Chanwoo Choi --- diff --git a/hal-backend-service/hal-backend-service.service.in b/hal-backend-service/hal-backend-service.service.in index b607f1c..e97f184 100644 --- a/hal-backend-service/hal-backend-service.service.in +++ b/hal-backend-service/hal-backend-service.service.in @@ -8,6 +8,7 @@ After=local-fs.target tizen-system-env.service systemd-tmpfiles-setup.service @S Type=simple SmackProcessLabel=System ExecStart=/usr/bin/hal/hal-backend-service --stub-proc-name '@PROC_NAME@' @THREADS@ +EnvironmentFile=/run/xdg-root-env Restart=on-failure RestartSec=0 KillSignal=SIGUSR1