Robert Ancell
23d70d6952
user-accounts: Replace deprecated g_spawn_check_exit_status
2022-05-31 15:21:37 +12:00
Felipe Borges
7f8e90a966
user-accounts: Port to gtk4/libadwaita implementing the new design
...
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/raw/master/users/users.png
2022-02-08 13:29:56 +00:00
Robert Ancell
c690e921ca
user-accounts: Use g_autoptr/g_autofree
2021-01-08 15:25:07 +13:00
Sebastien Bacher
57b01cf695
user-account: don't segfault trying to get the user initials
...
it's possible that act_user_get_real_name returns null, handle that case
fixes bug #959
2020-08-19 10:26:08 +12:00
Robert Ancell
100d3684f2
user-accounts: Connect signals with g_signal_connect_object in swapped form
2020-03-30 16:18:50 +13:00
Xiaoguang Wang
c6be204af0
user-accounts: Use absolute path of command usermod
...
On distro openSUSE Tumbleweed and SUSE Linux Enterprise the path
of command usermod is not in environment variable PATH, we need to
use absolute path to find command.
2019-12-11 15:30:33 +08:00
Ting-Wei Lan
564aa72b5e
user-accounts: Use 'pw usershow' to check username validity on FreeBSD
...
FreeBSD has no standalone 'usermod' command. Most user and group
management functions are provided as subcommands of 'pw' tool.
2019-09-10 23:32:49 +00:00
Ting-Wei Lan
54caab7b07
user-accounts: Initialize GError* to NULL before use
...
Otherwise, it causes warnings to be shown on the terminal when it is
used and quickly leads to a crash.
2019-09-10 23:32:49 +00:00
Ting-Wei Lan
a72a71ab11
user-accounts: Include sys/wait.h for W* macros
...
Otherwise, the compiler may treat WIFEXITED and WEXITSTATUS as implicit
declarations of functions and cause linking to fail.
2019-09-10 23:32:49 +00:00
Ondrej Holy
1f71ae6046
user-accounts: Check username validity over usermod
...
Username policies differ across the distributions. See the discussion on:
https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/359
It is not possible to hard-code some rules here without the need for
downstream modifications. Let's check the validity of usernames dynamically
over "usermod" to prevent this.
Just be careful that this is based on undocumented usermod behavior, which
may change in the future.
2019-08-26 16:26:45 +03:00
Ondrej Holy
f5f67823db
user-accounts: Present the default avatar in the avatar popover
...
Currently, it is not possible to unset a custom avatar, respective it
is not possible to set the default one. Let's present the default
avatar in the avatar popover as suggested in the mockup:
https://wiki.gnome.org/Design/OS/AvatarChooser
Fixes : GNOME/gnome-control-center#62
2019-05-16 14:50:45 +00:00
Ondrej Holy
65a8c15467
user-accounts: Remove a redundant parameter
...
The `round_image()` function has the `icon_size` parameter, which is not
used by that function, because the size is determined from a pixbuf size.
Let's remove that redundant `icon_size` parameter.
2019-05-16 14:50:45 +00:00
Felipe Borges
02c288ab6f
user-accounts: Generate a default avatar for new users
...
When a user is created, we generate an avatar with their initials.
See https://gitlab.gnome.org/GNOME/Initiatives/issues/6
2019-02-06 11:53:56 +00:00
Felipe Borges
d263ce1549
user-accounts: Round all user images
...
This is part of the effort in [0] to standardize the way we display
user images accross GNOME. Images are now going to be rounded and
borderless.
See https://gitlab.gnome.org/GNOME/Initiatives/issues/6
2019-02-06 11:53:56 +00:00
Robert Ancell
b40b0a4d05
user-accounts: Rename um-utils.[ch] to user-utils.[ch]
...
Um is a naming hangover from before this was part of g-c-c.
2018-11-14 10:10:15 +13:00