From 06c5a91b72a09ecb3e98bf2cb7b18fbd4d6fc4b23e1297303968d21f5d37268d Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 3 Jun 2024 11:15:34 +0000 Subject: [PATCH] Accepting request 1177365 from GNOME:Next - Add gnome-settings-daemon-stop-service-when-no-network.patch Fix to enable remote login. Allows the g-r-d handover service to be started on wifi network. OBS-URL: https://build.opensuse.org/request/show/1177365 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-settings-daemon?expand=0&rev=420 --- ...-daemon-stop-service-when-no-network.patch | 42 +++++++++++++++++++ gnome-settings-daemon.changes | 7 ++++ gnome-settings-daemon.spec | 2 + 3 files changed, 51 insertions(+) create mode 100644 gnome-settings-daemon-stop-service-when-no-network.patch diff --git a/gnome-settings-daemon-stop-service-when-no-network.patch b/gnome-settings-daemon-stop-service-when-no-network.patch new file mode 100644 index 0000000..c4ca50e --- /dev/null +++ b/gnome-settings-daemon-stop-service-when-no-network.patch @@ -0,0 +1,42 @@ +From 9a1c14127fd135a6bf6abbf5d57ae1a2961bf4d0 Mon Sep 17 00:00:00 2001 +From: Joan Torres +Date: Thu, 4 Apr 2024 13:40:02 +0200 +Subject: [PATCH] sharing: Stop assigned services only when no network + connection + +This allows grd handover service to be started even with network access +through a mobile device or when the network access is from Wi-Fi. +--- + plugins/sharing/gsd-sharing-manager.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/plugins/sharing/gsd-sharing-manager.c b/plugins/sharing/gsd-sharing-manager.c +index 7713569f..2ab2cb05 100644 +--- a/plugins/sharing/gsd-sharing-manager.c ++++ b/plugins/sharing/gsd-sharing-manager.c +@@ -297,7 +297,7 @@ start_assigned_service (GsdSharingManager *manager, + { + AssignedService *service; + +- if (manager->sharing_status != GSD_SHARING_STATUS_AVAILABLE) ++ if (manager->sharing_status == GSD_SHARING_STATUS_OFFLINE) + return; + + if (!info->system_service_running) +@@ -414,10 +414,10 @@ gsd_sharing_manager_sync_assigned_services (GsdSharingManager *manager) + for (l = services; l != NULL; l = l->next) { + AssignedServiceInfo *info = l->data; + +- if (manager->sharing_status == GSD_SHARING_STATUS_AVAILABLE) +- start_assigned_service (manager, info); +- else ++ if (manager->sharing_status == GSD_SHARING_STATUS_OFFLINE) + stop_assigned_service (manager, info); ++ else ++ start_assigned_service (manager, info); + } + g_list_free (services); + } +-- +2.44.0 + diff --git a/gnome-settings-daemon.changes b/gnome-settings-daemon.changes index a3c7f68..8f52701 100644 --- a/gnome-settings-daemon.changes +++ b/gnome-settings-daemon.changes @@ -4,6 +4,13 @@ Fri Apr 19 21:19:11 UTC 2024 - Michael Gorse - Update gnome-settings-daemon-bgo793253.patch to fix the build with gcc 14. +------------------------------------------------------------------- +Tue Apr 16 11:06:25 UTC 2024 - Joan Torres + +- Add gnome-settings-daemon-stop-service-when-no-network.patch + Fix to enable remote login. + Allows the g-r-d handover service to be started on wifi network. + ------------------------------------------------------------------- Sun Mar 17 09:35:43 UTC 2024 - Dominique Leuenberger diff --git a/gnome-settings-daemon.spec b/gnome-settings-daemon.spec index b963ce8..793ed02 100644 --- a/gnome-settings-daemon.spec +++ b/gnome-settings-daemon.spec @@ -44,6 +44,8 @@ Patch0: gnome-settings-daemon-initial-keyboard.patch Patch1: gnome-settings-daemon-switch-Japanese-default-input-to-mozc.patch # PATCH-FIX-UPSTREAM gnome-settings-daemon-bgo793253.patch bgo#793253 dimstar@opensuse.org -- Fix no-return-in-nonvoid-function Patch2: gnome-settings-daemon-bgo793253.patch +# PATCH-FIX-UPSTREAM gnome-settings-daemon-stop-service-when-no-network.patch [merged] joan.torres@suse.com -- Stop assigned services only when no network connection +Patch3: gnome-settings-daemon-stop-service-when-no-network.patch ## SLE/LEAP-only patches start at 1000 # PATCH-FEATURE-OPENSUSE gnome-settings-daemon-notify-idle-resumed.patch bnc#439018 bnc#708182 bgo#575467 hpj@suse.com -- notify user about auto suspend when returning from sleep