hal-backend-service: Add EnvironmentFile=/run/xdg-root-env to use libtbm 49/321449/2 accepted/tizen/unified/20250326.130857 accepted/tizen/unified/x/20250326.212907
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 21 Mar 2025 08:42:12 +0000 (17:42 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 21 Mar 2025 08:53:02 +0000 (17:53 +0900)
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 <cw00.choi@samsung.com>
hal-backend-service/hal-backend-service.service.in

index b607f1ce0b289c573884c59b21e5063136dfe9cd..e97f18432392b6699d9eec0e8cb78320d202f12c 100644 (file)
@@ -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