Commit bda611c1 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

thumbnail: Fix non-working thumbnailer in Flatpak

In a Flatpak, $FLATPAK_SANDBOX_DIR might be set, but the directory might
not exist. This means that the thumbnailing sandbox might fail to start
because the shared directory is missing.

(test-desktop-thumbnail:6): GnomeDesktop-DEBUG: 16:37:21.007: Thumbnail script ('evince-thumbnailer -s %s %u %o') failed for 'file:///home/hadess/foo.cbz': Could not create temporary sandbox directory
parent fb79d004
Pipeline #259827 passed with stage
in 3 minutes and 26 seconds
......@@ -992,6 +992,7 @@ script_exec_new (const char *uri,
goto bail;
}
g_mkdir_with_parents (sandbox_dir, 0700);
tmpl = g_build_filename (sandbox_dir, "gnome-desktop-thumbnailer-XXXXXX", NULL);
exec->outdir = g_mkdtemp (tmpl);
if (!exec->outdir)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment