[Xfce4-commits] [xfce/exo] 01/01: Support for the XDG Base Directory Specification for thumbnails (bug #14799)

noreply at xfce.org noreply at xfce.org
Fri Jan 11 02:39:28 CET 2019


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/exo.

commit 2cb0c01f282657471c1d5a667270eb48ee35aac5
Author: EdĂȘnis Azevedo <edenisfa at gmail.com>
Date:   Thu Jan 10 20:38:55 2019 -0500

    Support for the XDG Base Directory Specification for thumbnails (bug #14799)
    
    Signed-off-by: Sean Davis <smd.seandavis at gmail.com>
---
 exo/exo-thumbnail.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exo/exo-thumbnail.c b/exo/exo-thumbnail.c
index c22ee31..01a7188 100644
--- a/exo/exo-thumbnail.c
+++ b/exo/exo-thumbnail.c
@@ -220,7 +220,7 @@ _exo_thumbnail_get_for_file (const gchar     *filename,
           g_free (md5);
 
           /* determine the path of the thumbnail */
-          path = xfce_get_homefile (".thumbnails", (size == EXO_THUMBNAIL_SIZE_NORMAL) ? "normal" : "large", name, NULL);
+          path = g_build_path ("/", g_get_user_cache_dir(), "thumbnails", (size == EXO_THUMBNAIL_SIZE_NORMAL) ? "normal" : "large", name, NULL);
           g_free (name);
 
           /* try to load the thumbnail */
@@ -283,7 +283,7 @@ _exo_thumbnail_get_for_uri (const gchar     *uri,
   g_free (md5);
 
   /* determine the path of the thumbnail */
-  path = xfce_get_homefile (".thumbnails", (size == EXO_THUMBNAIL_SIZE_NORMAL) ? "normal" : "large", name, NULL);
+  path = g_build_path ("/", g_get_user_cache_dir(), "thumbnails", (size == EXO_THUMBNAIL_SIZE_NORMAL) ? "normal" : "large", name, NULL);
   g_free (name);
 
   /* try to load the thumbnail */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list