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




commit 6798b1d90a52aee1a4f18986b47c137b92ed6b03
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 78b293fe8..998cac345 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -232,7 +232,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]