public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Leigh Scott <leigh123linux@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/cinnamon-screensaver] f44: Add patch to address crash
Date: Thu, 01 Oct 2026 04:21:28 GMT [thread overview]
Message-ID: <179082848840.1.15146608648619526740.rpms-cinnamon-screensaver-d088f186117e@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-01 4:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179082848840.1.15146608648619526740.rpms-cinnamon-screensaver-d088f186117e@fedoraproject.org \
--to=leigh123linux@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox