Accepting request 1178363 from GNOME:Factory

- Update gnome-settings-daemon-bgo793253.patch to fix the build
  with gcc 14.
- 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/1178363
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-settings-daemon?expand=0&rev=193
This commit is contained in:
Ana Guerrero 2024-06-04 10:51:01 +00:00 committed by Git OBS Bridge
commit 3c7fa299d6
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,42 @@
From 9a1c14127fd135a6bf6abbf5d57ae1a2961bf4d0 Mon Sep 17 00:00:00 2001
From: Joan Torres <joan.torres@suse.com>
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

View File

@ -4,6 +4,13 @@ Fri Apr 19 21:19:11 UTC 2024 - Michael Gorse <mgorse@suse.com>
- Update gnome-settings-daemon-bgo793253.patch to fix the build
with gcc 14.
-------------------------------------------------------------------
Tue Apr 16 11:06:25 UTC 2024 - Joan Torres <joan.torres@suse.com>
- 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 <dimstar@opensuse.org>

View File

@ -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