From: Seunghun Lee Date: Tue, 15 Mar 2016 08:44:41 +0000 (+0900) Subject: evas: use a environment "TIZEN_WAYLAND_SHM_DIR" as a path of shared memory. X-Git-Tag: submit/tizen/20160315.115610^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86d9d3b417469ac3dd3600d25d1702dbff9d6f0d;p=platform%2Fupstream%2Fefl.git 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 --- 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);