[gnome-software] Use the configured datadir when searching for icons



commit 8fcb354cf8bebf5f0284810259f70ed259c53211
Author: Richard Hughes <richard hughsie com>
Date:   Thu Mar 27 15:02:35 2014 +0000

    Use the configured datadir when searching for icons
    
    Don't assume the distro (cough, looking at you Ubuntu, cough) ships a sane
    version of the icon theme and use the jhbuild provided one.

 src/gs-utils.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-utils.c b/src/gs-utils.c
index a353e0d..c6929d0 100644
--- a/src/gs-utils.c
+++ b/src/gs-utils.c
@@ -289,7 +289,8 @@ gs_pixbuf_find_icon_name (const gchar *icon_name)
                for (i = 0; iconset[i] != NULL; i++) {
                        for (j = 0; sizes[j] != NULL; j++) {
                                for (k = 0; section[k] != NULL; k++) {
-                                       path = g_build_filename ("/usr/share/icons/",
+                                       path = g_build_filename (DATADIR,
+                                                                "icons",
                                                                 iconset[i],
                                                                 sizes[j],
                                                                 section[k],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]