diff --git a/gnome-weather-BackgroundService-service-fails-to-start.patch b/gnome-weather-BackgroundService-service-fails-to-start.patch new file mode 100644 index 0000000..90638a2 --- /dev/null +++ b/gnome-weather-BackgroundService-service-fails-to-start.patch @@ -0,0 +1,13 @@ +diff --git a/src/org.gnome.Weather.BackgroundService.in b/src/org.gnome.Weather.BackgroundService.in +index 53c9cccfc257307b2535242670e5668d5eac349b..339c23da020e70a2dafc3661c3813aac7e2cea83 100755 +--- a/src/org.gnome.Weather.BackgroundService.in ++++ b/src/org.gnome.Weather.BackgroundService.in +@@ -4,7 +4,7 @@ imports.package.init({ name: "@APP_ID@", + prefix: "@prefix@", + libdir: "@libdir@" }); + +-import('resource:///org/gnome/Weather/js/service/main.js').then(({ main }) => { ++import('resource:///org/gnome/Weather/BackgroundService/js/service/main.js').then(({ main }) => { + main([imports.system.programInvocationName, ...imports.system.programArgs]); + }).catch(error => { + console.error(error); diff --git a/gnome-weather.changes b/gnome-weather.changes index 540fb85..36203a5 100644 --- a/gnome-weather.changes +++ b/gnome-weather.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 31 01:56:25 UTC 2023 - Xiaoguang Wang + +- Add gnome-weather-BackgroundService-service-fails-to-start.patch: + org.gnome.Weather.BackgroundService fails to start + (bsc#1209391 glgo#GNOME/gnome-weather!132). + ------------------------------------------------------------------- Sun Mar 19 17:38:29 UTC 2023 - Bjørn Lie diff --git a/gnome-weather.spec b/gnome-weather.spec index 87aebc0..8f582bf 100644 --- a/gnome-weather.spec +++ b/gnome-weather.spec @@ -26,6 +26,9 @@ Group: Productivity/Other URL: https://apps.gnome.org/app/org.gnome.Weather Source0: https://download.gnome.org/sources/gnome-weather/44/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM gnome-weather-BackgroundService-service-fails-to-start.patch bsc#1209391 glgo#GNOME/gnome-weather!132 xwang@suse.com -- org.gnome.Weather.BackgroundService fails to start +Patch0: gnome-weather-BackgroundService-service-fails-to-start.patch + BuildRequires: appstream-glib BuildRequires: desktop-file-utils BuildRequires: intltool >= 0.26