From cf0a84f2a79d3685b0f7a516e4c9d9ade1b888dc Mon Sep 17 00:00:00 2001 From: Xiaoguang Wang 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;