[gnome-software/1225-do-not-allow-distro-upgrades-if-release-art-is-missing: 118/121] gs-plugin-fedora-pkgdb-collections: Fallback to upgrade-bg.png




commit 7437e9b5cd2c52b36798ba470f6a582e428ee603
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 5 12:56:22 2021 +0200

    gs-plugin-fedora-pkgdb-collections: Fallback to upgrade-bg.png
    
    When no upgrade background is found, fallback to the one provided by
    the gnome-software, thus there's always some background image.

 plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c 
b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
index e77665991..93f876cd0 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -231,7 +231,7 @@ _get_upgrade_css_background (guint version)
        if (g_file_test (filename2, G_FILE_TEST_EXISTS))
                return g_strdup_printf ("url('%s')", filename2);
 
-       return NULL;
+       return g_strdup ("url('" DATADIR "/gnome-software/upgrade-bg.png')");
 }
 
 static gint


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