Commit ef0f02e3 authored by Sebastian Keller's avatar Sebastian Keller Committed by Bastien Nocera

thumbnail: Include the filename in the thumbnail path

thumbnail_path did not include the actual filename in its result after
calculating it. This breaks things in save_thumbnail which assumes
receiving a file path rather than a directory path.

See original code before clean ups at:
https://git.gnome.org/browse/gnome-desktop/tree/libgnome-desktop/gnome-desktop-thumbnail.c?id=f2d25fa7d6cdaba03679f0fc0921fc5f81bd3944#n1060

https://bugzilla.gnome.org/show_bug.cgi?id=684026
parent ef4734f8
......@@ -1049,6 +1049,7 @@ thumbnail_path (const char *uri,
path = g_build_filename (g_get_user_cache_dir (),
"thumbnails",
size == GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE ? "large" : "normal",
file,
NULL);
g_free (file);
return path;
......
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