mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
waylandsink: Use XDG_RUNTIME_DIR instead of /tmp for the shm file
This commit is contained in:
parent
4208ae6203
commit
549bdb4a09
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue