Bjørn Lie
31f6e02755
+ Accessibility: Fix enum value for follow centered + Apps: Fix memory leak for MMManager object in default apps page + Network: Don't set empty ignored hosts + Privacy: Fix visibility issue of Bolt settings when Bolt isn't available + Users: - Avoid accidental mnemonics for user name rows - Show correctly the remaining list of fingerprints to enroll + WWAN: Fix crash on Unlock SIM dialog OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=565
28 lines
1.0 KiB
Diff
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-46.3/panels/system/users/cc-users-page.c
|
|
===================================================================
|
|
--- gnome-control-center-46.3.orig/panels/system/users/cc-users-page.c
|
|
+++ gnome-control-center-46.3/panels/system/users/cc-users-page.c
|
|
@@ -172,6 +172,10 @@ on_user_added (CcUsersPage *self,
|
|
CcUserPage *page;
|
|
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;
|