gnome-control-center/gnome-control-center-users-page-Don-t-show-the-system-accounts.patch
Bjørn Lie 4e500ea167 - Recommend ppd-server instead of power-profiles-daemon: there is
also tuned-ppd, which provides the same dbus interface. If the
  user does not chose between the two, we suggest the original
  power-profiles-daemon.

- Fix escaping of commented out patch: with RPM 4.20, %patch
  becomes a standard, expandable macro, that can span more than one
  line. Commenting out with #%patch can thus lead to invalid
  results.

OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=578
2025-01-17 12:58:49 +00:00

28 lines
1.0 KiB
Diff

From cf0a84f2a79d3685b0f7a516e4c9d9ade1b888dc Mon Sep 17 00:00:00 2001
From: Xiaoguang Wang <xwang@suse.com>
Date: Thu, 23 May 2024 09:32:43 +0800
Subject: [PATCH] users-page: Don't show the system accounts
When handling user-added signal, omit the system accounts.
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/3066
---
panels/system/users/cc-users-page.c | 4 ++++
1 file changed, 4 insertions(+)
Index: gnome-control-center-47.beta/panels/system/users/cc-users-page.c
===================================================================
--- gnome-control-center-47.beta.orig/panels/system/users/cc-users-page.c
+++ gnome-control-center-47.beta/panels/system/users/cc-users-page.c
@@ -174,6 +174,10 @@ on_user_added (CcUsersPage *self,
g_list_store_insert_sorted (self->model, user, sort_users, self);
+ if (act_user_is_system_account (user)) {
+ return;
+ }
+
page = CC_USER_PAGE (adw_navigation_view_get_visible_page (self->navigation));
if (page != self->current_user_page)
return;