diff options
author | Ray Strode <rstrode@redhat.com> | 2017-10-02 15:45:01 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2017-10-27 13:24:47 -0400 |
commit | c323b2356eb46ecc7047b46cf20672ad9ab5a7ee (patch) | |
tree | 3bfcacaf4ce633c33e2ad32eed1941125c0d3894 /data | |
parent | 3c86a80e2606633da12fb24669dc4d536c708b1c (diff) |
daemon: add new HasMultipleUsers and HasNoUsers properties
Every gnome-shell instance wants to know if the system has multiple
users or not, in order to know whether or not to show the
'Switch User' feature in the menu.
accountsservice doesn't provide this information directly, though,
so libaccountsservice instead requests a list of all users on the
system and counts the provided list, filtering out system users.
This is a lot of work for every gnome-shell instance to do, when
it doesn't actually need the list of users at all.
This adds a new property HasMultipleUsers which libaccountsservice
can watch for instead. For good measure, this commit also adds a
HasNoUsers boolean which can be used to know whether or not to start
gnome-initial-setup.
https://bugs.freedesktop.org/show_bug.cgi?id=103488
Diffstat (limited to 'data')
-rw-r--r-- | data/org.freedesktop.Accounts.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/data/org.freedesktop.Accounts.xml b/data/org.freedesktop.Accounts.xml index 692540a..ed7db50 100644 --- a/data/org.freedesktop.Accounts.xml +++ b/data/org.freedesktop.Accounts.xml @@ -224,5 +224,25 @@ </doc:doc> </property> + <property name="HasNoUsers" type="b" access="read"> + <doc:doc> + <doc:description> + <doc:para> + Whether or not the system has no users + </doc:para> + </doc:description> + </doc:doc> + </property> + + <property name="HasMultipleUsers" type="b" access="read"> + <doc:doc> + <doc:description> + <doc:para> + Whether or not the system has multiple users + </doc:para> + </doc:description> + </doc:doc> + </property> + </interface> </node> |