From 084daa0d893f88f98c60959af77fe541c2e5061c Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Mon, 3 Nov 2025 14:34:48 +0100 Subject: [PATCH] Set icon for subscription manager notifications Resolves: RHEL-5074 --- gnome-settings-daemon.spec | 8 +++++- subman-set-notification-icon.patch | 43 ++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 subman-set-notification-icon.patch diff --git a/gnome-settings-daemon.spec b/gnome-settings-daemon.spec index 6eb5c7c..8efb870 100644 --- a/gnome-settings-daemon.spec +++ b/gnome-settings-daemon.spec @@ -12,7 +12,7 @@ Name: gnome-settings-daemon Version: 3.32.0 -Release: 20%{?dist} +Release: 21%{?dist} Summary: The daemon sharing settings from GNOME to GTK+/KDE applications License: GPLv2+ @@ -120,6 +120,8 @@ Patch50013: 0013-subman-Improve-subscription-status-handling.patch Patch50014: 0014-subman-Drop-LAST-from-status-enum.patch Patch50015: 0015-subman-Clean-up-notification-behavior.patch Patch50016: 0016-subman-Update-POTFILES.in.patch +# https://issues.redhat.com/browse/RHEL-5074 +Patch50018: subman-set-notification-icon.patch %endif # https://bugzilla.redhat.com/show_bug.cgi?id=1876291 @@ -273,6 +275,10 @@ mkdir $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-3.0/gtk-modules %{_libdir}/pkgconfig/gnome-settings-daemon.pc %changelog +* Mon Nov 03 2025 Felipe Borges - 3.32.0-21 +- Add icon to subman notifications + Resolves: RHEL-5074 + * Mon Jul 24 2023 Ray Strode - 3.32.0-20 - Backport some upstream smartcard changes that make it work better with p11-kit diff --git a/subman-set-notification-icon.patch b/subman-set-notification-icon.patch new file mode 100644 index 0000000..342f601 --- /dev/null +++ b/subman-set-notification-icon.patch @@ -0,0 +1,43 @@ +From fa5d80e5492370224864173cc052cd3d57698ac7 Mon Sep 17 00:00:00 2001 +From: Felipe Borges +Date: Mon, 3 Nov 2025 14:32:30 +0100 +Subject: [PATCH] subman: Set notification icon + +--- + plugins/subman/gsd-subscription-manager.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/plugins/subman/gsd-subscription-manager.c b/plugins/subman/gsd-subscription-manager.c +index aaccbbc6..7ba45feb 100644 +--- a/plugins/subman/gsd-subscription-manager.c ++++ b/plugins/subman/gsd-subscription-manager.c +@@ -1043,7 +1043,7 @@ gsd_subscription_manager_init (GsdSubscriptionManager *manager) + priv->notification_expired = + notify_notification_new (_("Subscription Has Expired"), + _("Add or renew a subscription to continue receiving software updates."), +- NULL); ++ "preferences-system"); + notify_notification_set_app_name (priv->notification_expired, _("Subscription")); + notify_notification_set_hint_string (priv->notification_expired, "desktop-entry", "subman-panel"); + notify_notification_set_hint_string (priv->notification_expired, "x-gnome-privacy-scope", "system"); +@@ -1059,7 +1059,7 @@ gsd_subscription_manager_init (GsdSubscriptionManager *manager) + priv->notification_registered = + notify_notification_new (_("Registration Successful"), + _("The system has been registered and software updates have been enabled."), +- NULL); ++ "preferences-system"); + notify_notification_set_app_name (priv->notification_registered, _("Subscription")); + notify_notification_set_hint_string (priv->notification_registered, "desktop-entry", "subman-panel"); + notify_notification_set_hint_string (priv->notification_registered, "x-gnome-privacy-scope", "system"); +@@ -1071,7 +1071,7 @@ gsd_subscription_manager_init (GsdSubscriptionManager *manager) + priv->notification_registration_required = + notify_notification_new (_("System Not Registered"), + _("Please register your system to receive software updates."), +- NULL); ++ "preferences-system"); + notify_notification_set_app_name (priv->notification_registration_required, _("Subscription")); + notify_notification_set_hint_string (priv->notification_registration_required, "desktop-entry", "subman-panel"); + notify_notification_set_hint_string (priv->notification_registration_required, "x-gnome-privacy-scope", "system"); +-- +2.51.0 +