public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cinnamon-screensaver] f44: Add patch to address crash
@ 2026-10-01  4:21 Leigh Scott
  0 siblings, 0 replies; only message in thread
From: Leigh Scott @ 2026-10-01  4:21 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/cinnamon-screensaver
Branch : f44
Commit : d088f186117eadeea6df7cc14a5ae246f1155c7f
Author : Leigh Scott <leigh123linux@gmail.com>
Date   : 2026-10-01T05:21:15+01:00
Stats  : +58/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/cinnamon-screensaver/c/d088f186117eadeea6df7cc14a5ae246f1155c7f?branch=f44

Log:
Add patch to address crash

---
diff --git a/1e8c655d6c6f9d308be1103ce265b508db2b509e.patch b/1e8c655d6c6f9d308be1103ce265b508db2b509e.patch
new file mode 100644
index 0000000..f4daa20
--- /dev/null
+++ b/1e8c655d6c6f9d308be1103ce265b508db2b509e.patch
@@ -0,0 +1,53 @@
+From 1e8c655d6c6f9d308be1103ce265b508db2b509e Mon Sep 17 00:00:00 2001
+From: CyberNomad <abdou0xdz@gmail.com>
+Date: Fri, 14 Aug 2026 15:40:19 +0200
+Subject: [PATCH] passwordEntry: guard against None layout sources (#504)
+
+When the screensaver fails to connect to Cinnamon (logged as
+'Failed to connect to Cinnamon'), lockscreen_layout_source and
+system_layout_source remain None. Three methods then crash
+dereferencing them:
+
+- restore_original_layout(): AttributeError on .index
+- on_draw(): AttributeError on .flag_name / .short_name
+- update_layout_icon(): AttributeError on .display_name
+
+Add early-return guards in all three methods.
+
+Reproduces on: Cinnamon 6.6.x, NVIDIA GPU, single keyboard layout (us),
+after unlock from screensaver.
+---
+ src/passwordEntry.py | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/passwordEntry.py b/src/passwordEntry.py
+index 7a2c0825..824d6801 100644
+--- a/src/passwordEntry.py
++++ b/src/passwordEntry.py
+@@ -59,6 +59,8 @@ def on_draw(self, widget, cr, data=None):
+         height = icon_rect.height - 4
+ 
+         handled = False
++        if self.lockscreen_layout_source is None:
++            return False
+         if settings.get_show_flags():
+             ui_scale = self.get_scale_factor()
+ 
+@@ -203,6 +205,8 @@ def update_layout_icon(self):
+         also ensures a redraw at the correct time to update the flag image.
+         """
+         self.set_icon_from_icon_name(Gtk.EntryIconPosition.PRIMARY, "screensaver-blank")
++        if self.lockscreen_layout_source is None:
++            return
+         self.set_icon_tooltip_text(Gtk.EntryIconPosition.PRIMARY, self.lockscreen_layout_source.display_name)
+ 
+     def on_destroy(self, widget, data=None):
+@@ -239,6 +243,8 @@ def restore_original_layout(self):
+         Called when the unlock dialog is destroyed, restores
+         the group that was active before the screensaver was activated.
+         """
++        if self.lockscreen_layout_source is None or self.system_layout_source is None:
++            return
+         if settings.get_kb_group() != self.lockscreen_layout_source.index:
+             settings.set_kb_group(self.lockscreen_layout_source.index)
+ 

diff --git a/cinnamon-screensaver.spec b/cinnamon-screensaver.spec
index 75140ca..6893d1f 100644
--- a/cinnamon-screensaver.spec
+++ b/cinnamon-screensaver.spec
@@ -1,11 +1,12 @@
 Summary: Cinnamon Screensaver
 Name:    cinnamon-screensaver
 Version: 6.6.1
-Release: 4%{?dist}
+Release: 5%{?dist}
 # Automatically converted from old format: GPLv2+ and LGPLv2+ - review is highly recommended.
 License: GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
 URL:     https://github.com/linuxmint/%{name}
 Source0: %url/archive/%{version}/%{name}-%{version}.tar.gz
+Patch0:  %url/commit/1e8c655d6c6f9d308be1103ce265b508db2b509e.patch
 
 ExcludeArch: %{ix86}
 
@@ -95,6 +96,9 @@ rm %{buildroot}%{_datadir}/gir-1.0/CScreensaver-1.0.gir
 %{_libexecdir}/cinnamon-screensaver/girepository-1.0/CScreensaver-1.0.typelib
 
 %changelog
+* Thu Oct 01 2026 Leigh Scott <leigh123linux@gmail.com> - 6.6.1-5
+- Add patch to address crash
+
 * Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-01  4:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01  4:21 [rpms/cinnamon-screensaver] f44: Add patch to address crash Leigh Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox