From 4664aa13d1a5dcf9c4b7a8c7fb5e56747bbc1f02 Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Thu, 30 Jan 2025 17:53:56 +0100 Subject: [PATCH] Make "Register System" notification launch registration dialog directly Related: RHEL-4101 --- gnome-settings-daemon.spec | 9 +++++- ...-launch-registration-dialog-directly.patch | 31 +++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 subman-launch-registration-dialog-directly.patch diff --git a/gnome-settings-daemon.spec b/gnome-settings-daemon.spec index abe67aa..07b9c2b 100644 --- a/gnome-settings-daemon.spec +++ b/gnome-settings-daemon.spec @@ -11,7 +11,7 @@ Name: gnome-settings-daemon Version: 40.0.1 -Release: 19%{?dist} +Release: 20%{?dist} Summary: The daemon sharing settings from GNOME to GTK+/KDE applications License: GPLv2+ @@ -76,6 +76,9 @@ Patch00006: usb-protection-dont-crash-when-screensaver-service-unavailable.patch Patch00007: smartcard-hotplug.patch Patch00008: power-button-action-server.patch +# https://issues.redhat.com/browse/RHEL-4101 +Patch00009: subman-launch-registration-dialog-directly.patch + %description A daemon to share settings from GNOME to other applications. It also handles global keybindings, as well as a number of desktop-wide settings. @@ -200,6 +203,10 @@ cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas %{_libdir}/pkgconfig/gnome-settings-daemon.pc %changelog +* Thu Jan 30 2025 Felipe Borges - 40.0.1-20 +- Make "Register System" notification launch registration dialog directly + Related: RHEL-4101 + * Mon Jan 20 2025 Felipe Borges - 40.0.1-19 - Fix default power-button-action setting for servers Related: RHEL-71937 diff --git a/subman-launch-registration-dialog-directly.patch b/subman-launch-registration-dialog-directly.patch new file mode 100644 index 0000000..4510043 --- /dev/null +++ b/subman-launch-registration-dialog-directly.patch @@ -0,0 +1,31 @@ +From ae039526040319438367802194dc4f7ad5789855 Mon Sep 17 00:00:00 2001 +From: Felipe Borges +Date: Thu, 30 Jan 2025 17:50:40 +0100 +Subject: [PATCH] Launch subscription registration dialog directly from + notification + +In https://issues.redhat.com/browse/RHEL-4101, GNOME Settings will start +handling `gnome-control-center info-overview subman-register` to launch +the dialog directly. +--- + plugins/subman/gsd-subscription-manager.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/plugins/subman/gsd-subscription-manager.c b/plugins/subman/gsd-subscription-manager.c +index 09a96a3a..e3b0565d 100644 +--- a/plugins/subman/gsd-subscription-manager.c ++++ b/plugins/subman/gsd-subscription-manager.c +@@ -1082,8 +1082,8 @@ gsd_subscription_manager_class_init (GsdSubscriptionManagerClass *klass) + static void + _launch_info_overview (void) + { +- const gchar *argv[] = { "gnome-control-center", "info-overview", NULL }; +- g_debug ("Running gnome-control-center info-overview"); ++ const gchar *argv[] = { "gnome-control-center", "info-overview", "subman-register", NULL }; ++ g_debug ("Running gnome-control-center info-overview subman-register"); + g_spawn_async (NULL, (gchar **) argv, NULL, G_SPAWN_SEARCH_PATH, + NULL, NULL, NULL, NULL); + } +-- +2.48.1 +