Rename f36-time.xml back to f36.xml to fix GNOME

epel8
Adam Williamson 3 years ago
parent b1047bf645
commit dd62aaeb0a

@ -0,0 +1,76 @@
From 301896137149b7f3ee4c23d318b91fcd93c482d1 Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Thu, 3 Mar 2022 16:25:34 -0800
Subject: [PATCH] Rename f36-time.xml back to f36.xml
It is not safe to just rename this file. The schema override in
desktop-backgrounds-gnome points to exactly
/usr/share/backgrounds/fNN/default/fNN.xml (where NN is the
release number); if that file does not exist, then new user
accounts will have a broken config. Also I think when the user
account is created this string is written into their config -
so even if we changed the override to point to this new name,
anyone who installed F36 already would still have a config that
looks for f36.xml and if there is no f36.xml their background
would break.
I'm not clear whether we want the animated background or the
static night one to be the default, but whichever it is should
be installed as f36.xml, not any other name. This assumes the
one we want to be default is the animated one.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
default/Makefile | 2 +-
default/{f36-time.xml => f36.xml} | 0
default/gnome-backgrounds-f36.xml | 2 +-
default/mate-backgrounds-f36.xml | 2 +-
4 files changed, 3 insertions(+), 3 deletions(-)
rename default/{f36-time.xml => f36.xml} (100%)
diff --git a/default/Makefile b/default/Makefile
index 7ae187e..e419d2a 100644
--- a/default/Makefile
+++ b/default/Makefile
@@ -23,7 +23,7 @@ install:
$(INSTALL) $(WP_NAME)-$${tod}.png $(WP_DIR)/default/$(WP_NAME)-$${tod}.png ; \
done;
$(LN_S) ../default/$(WP_NAME)-01-day.png $(WP_DIR)/default/$(WP_NAME).png
- $(INSTALL) $(WP_NAME)-time.xml $(WP_DIR)/default/$(WP_NAME)-time.xml
+ $(INSTALL) $(WP_NAME).xml $(WP_DIR)/default/$(WP_NAME).xml
#~ GNOME background
$(MKDIR) $(GNOME_BG_DIR)
diff --git a/default/f36-time.xml b/default/f36.xml
similarity index 100%
rename from default/f36-time.xml
rename to default/f36.xml
diff --git a/default/gnome-backgrounds-f36.xml b/default/gnome-backgrounds-f36.xml
index c533931..e6e803b 100644
--- a/default/gnome-backgrounds-f36.xml
+++ b/default/gnome-backgrounds-f36.xml
@@ -13,7 +13,7 @@
<wallpaper deleted="false">
<name>Fedora 36 Time of Day</name>
- <filename>/usr/share/backgrounds/f36/default/f36-time.xml</filename>
+ <filename>/usr/share/backgrounds/f36/default/f36.xml</filename>
<options>zoom</options>
</wallpaper>
</wallpapers>
diff --git a/default/mate-backgrounds-f36.xml b/default/mate-backgrounds-f36.xml
index ce3c2eb..83f3362 100644
--- a/default/mate-backgrounds-f36.xml
+++ b/default/mate-backgrounds-f36.xml
@@ -3,7 +3,7 @@
<wallpapers>
<wallpaper deleted="false">
<name>Fedora 36 Time of Day</name>
- <filename>/usr/share/backgrounds/f36/default/f36-time.xml</filename>
+ <filename>/usr/share/backgrounds/f36/default/f36.xml</filename>
<options>zoom</options>
</wallpaper>
--
2.35.1

@ -7,13 +7,17 @@
Name: %{bgname}-backgrounds
Version: %{relnum}.0.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Fedora %{relnum} default desktop background
License: CC-BY-SA
URL: https://fedoraproject.org/wiki/_Artwork
Source0: https://github.com/fedoradesign/backgrounds/releases/download/v%{version}/%{name}-%{version}.tar.xz
# Restore important 'f36.xml' name for key file or else GNOME breaks
# https://github.com/fedoradesign/backgrounds/pull/34
Patch0: 0001-Rename-f36-time.xml-back-to-f36.xml.patch
BuildArch: noarch
# for %%_kde4_* macros
@ -116,7 +120,7 @@ This package contains supplemental wallpapers for XFCE
%endif
%prep
%autosetup -n %{name}
%autosetup -n %{name} -p1
%build
@ -173,6 +177,9 @@ This package contains supplemental wallpapers for XFCE
%endif
%changelog
* Thu Mar 03 2022 Adam Williamson <awilliam@redhat.com> - 36.0.1-2
- Rename f36-time.xml back to f36.xml to fix GNOME
* Wed Mar 2 2022 Luya Tshimbalanga <luya@fedoraproject.org> - 36.0.1-1
- Update to 36.0.1

Loading…
Cancel
Save