From 86d9d3b417469ac3dd3600d25d1702dbff9d6f0d Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Tue, 15 Mar 2016 17:44:41 +0900 Subject: [PATCH] evas: use a environment "TIZEN_WAYLAND_SHM_DIR" as a path of shared memory. allow to locate the shm file in the Tizen specific directory. Change-Id: I76663d784076d59cce290500ebe857070c293934 --- src/modules/evas/engines/wayland_shm/evas_shm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c index 593a8ae..eed3d12 100644 --- a/src/modules/evas/engines/wayland_shm/evas_shm.c +++ b/src/modules/evas/engines/wayland_shm/evas_shm.c @@ -21,7 +21,8 @@ _shm_pool_make(struct wl_shm *shm, int size, void **data) if (!shm) return NULL; /* create tmp file name */ - if ((path = getenv("XDG_RUNTIME_DIR"))) + if ((path = getenv("TIZEN_WAYLAND_SHM_DIR")) || + (path = getenv("XDG_RUNTIME_DIR"))) { if ((name = malloc(strlen(path) + sizeof(tmp)))) strcpy(name, path); -- 2.7.4