Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package variety for openSUSE:Factory checked in at 2022-10-19 13:17:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/variety (Old) and /work/SRC/openSUSE:Factory/.variety.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "variety" Wed Oct 19 13:17:55 2022 rev:13 rq:1029892 version:0.8.9 Changes: -------- --- /work/SRC/openSUSE:Factory/variety/variety.changes 2022-06-24 08:46:15.207202548 +0200 +++ /work/SRC/openSUSE:Factory/.variety.new.2275/variety.changes 2022-10-19 13:18:26.725317656 +0200 @@ -1,0 +2,8 @@ +Sun Oct 16 21:59:39 UTC 2022 - malcolmle...@opensuse.org + +- Updated to version 0.8.9: + * Fix errors when there is no primary monitor configured, + (gh#varietywalls/variety#536 and gh#varietywalls/variety#537). +- Rebase variety-fix-data-path.patch. + +------------------------------------------------------------------- Old: ---- variety-0.8.8.tar.gz New: ---- variety-0.8.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ variety.spec ++++++ --- /var/tmp/diff_new_pack.VgPTyS/_old 2022-10-19 13:18:27.321318892 +0200 +++ /var/tmp/diff_new_pack.VgPTyS/_new 2022-10-19 13:18:27.325318900 +0200 @@ -19,7 +19,7 @@ %global __requires_exclude typelib\\(AyatanaAppIndicator3\\) Name: variety -Version: 0.8.8 +Version: 0.8.9 Release: 0 Summary: Wallpaper changer License: GPL-3.0-only @@ -101,6 +101,7 @@ %if 0%{?suse_version} > 1500 %files -f variety.lang %else + %files %endif %defattr(-,root,root) ++++++ variety-0.8.8.tar.gz -> variety-0.8.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/variety-0.8.8/data/ui/changes.txt new/variety-0.8.9/data/ui/changes.txt --- old/variety-0.8.8/data/ui/changes.txt 2022-06-17 12:01:33.000000000 +0200 +++ new/variety-0.8.9/data/ui/changes.txt 2022-06-22 23:23:51.000000000 +0200 @@ -1,3 +1,6 @@ +0.8.9 + Bugfix #536, #537: Fix errors when there is no primary monitor configured + 0.8.8 Feature #89: Added options to select fit size / wallpaper mode. Added an image-dependent smart fit mode. Bugfix #519: Fix issues with autostart. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/variety-0.8.8/debian/changelog new/variety-0.8.9/debian/changelog --- old/variety-0.8.8/debian/changelog 2022-06-17 12:01:33.000000000 +0200 +++ new/variety-0.8.9/debian/changelog 2022-06-22 23:23:51.000000000 +0200 @@ -1,3 +1,9 @@ +variety (0.8.9) focal; urgency=medium + + * Bugfix #536, #537: Fix errors when there is no primary monitor configured + + -- Peter Levi <peterl...@peterlevi.com> Thu, 23 Jun 2022 00:22:00 +0200 + variety (0.8.8) focal; urgency=medium * Feature #89: Added options to select fit size / wallpaper mode. Added an image-dependent smart fit mode. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/variety-0.8.8/variety/Util.py new/variety-0.8.9/variety/Util.py --- old/variety-0.8.8/variety/Util.py 2022-06-17 12:01:33.000000000 +0200 +++ new/variety-0.8.9/variety/Util.py 2022-06-22 23:23:51.000000000 +0200 @@ -611,9 +611,15 @@ def get_primary_display_size(hidpi_scaled=True): display = Gdk.Display.get_default() monitor = display.get_primary_monitor() - geometry = monitor.get_geometry() - scale = monitor.get_scale_factor() if hidpi_scaled else 1.0 - return int(geometry.width * scale), int(geometry.height * scale) + if not monitor: + monitor = display.get_monitor(0) + + if monitor: + geometry = monitor.get_geometry() + scale = monitor.get_scale_factor() if hidpi_scaled else 1.0 + return int(geometry.width * scale), int(geometry.height * scale) + else: + return Util.get_multimonitor_display_size() @staticmethod def get_multimonitor_display_size(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/variety-0.8.8/variety_lib/varietyconfig.py new/variety-0.8.9/variety_lib/varietyconfig.py --- old/variety-0.8.8/variety_lib/varietyconfig.py 2022-06-17 12:01:33.000000000 +0200 +++ new/variety-0.8.9/variety_lib/varietyconfig.py 2022-06-22 23:23:51.000000000 +0200 @@ -23,7 +23,7 @@ # for easy development / running from source. __variety_data_directory__ = "../data" __license__ = "GPL-3" -__version__ = "0.8.8" +__version__ = "0.8.9" import os ++++++ variety-fix-data-path.patch ++++++ --- /var/tmp/diff_new_pack.VgPTyS/_old 2022-10-19 13:18:27.521319306 +0200 +++ /var/tmp/diff_new_pack.VgPTyS/_new 2022-10-19 13:18:27.525319314 +0200 @@ -1,14 +1,13 @@ -Index: variety-0.8.8/variety_lib/varietyconfig.py -=================================================================== ---- variety-0.8.8.orig/variety_lib/varietyconfig.py -+++ variety-0.8.8/variety_lib/varietyconfig.py -@@ -21,7 +21,7 @@ try: +diff -Nuar a/variety_lib/varietyconfig.py b/variety_lib/varietyconfig.py +--- a/variety_lib/varietyconfig.py 2022-06-22 16:23:51.000000000 -0500 ++++ b/variety_lib/varietyconfig.py 2022-10-16 17:05:09.056198296 -0500 +@@ -21,7 +21,7 @@ except ImportError: # Variety's data directory. This is set by setup.py for permanent installations, but defaults to ../data # for easy development / running from source. - __variety_data_directory__ = "../data" + __variety_data_directory__ = "/usr/share/variety" __license__ = "GPL-3" - __version__ = "0.8.8" + __version__ = "0.8.9"