From: George Kiagiadakis Date: Tue, 14 May 2013 16:35:33 +0000 (+0300) Subject: waylandsink: Use XDG_RUNTIME_DIR instead of /tmp for the shm file X-Git-Tag: 1.19.3~507^2~10867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=549bdb4a09bdcacd0a1d961d55bf8802844e5173;p=platform%2Fupstream%2Fgstreamer.git waylandsink: Use XDG_RUNTIME_DIR instead of /tmp for the shm file --- diff --git a/ext/wayland/waylandpool.c b/ext/wayland/waylandpool.c index 6594401..0310e89 100644 --- a/ext/wayland/waylandpool.c +++ b/ext/wayland/waylandpool.c @@ -133,7 +133,8 @@ make_shm_pool (GstWlDisplay * display, int size, void **data) char filename[1024]; static int init = 0; - snprintf (filename, 256, "%s-%d-%s", "/tmp/wayland-shm", init++, "XXXXXX"); + snprintf (filename, 256, "%s/%s-%d-%s", g_get_user_runtime_dir (), + "wayland-shm", init++, "XXXXXX"); fd = mkstemp (filename); if (fd < 0) {