evas: use a environment "TIZEN_WAYLAND_SHM_DIR" as a path of shared memory. 17/62317/4 submit/tizen/20160315.115610
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 15 Mar 2016 08:44:41 +0000 (17:44 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 15 Mar 2016 10:48:35 +0000 (19:48 +0900)
allow to locate the shm file in the Tizen specific directory.

Change-Id: I76663d784076d59cce290500ebe857070c293934

src/modules/evas/engines/wayland_shm/evas_shm.c

index 593a8ae..eed3d12 100644 (file)
@@ -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);