summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2015-02-08 21:17:53 +0000
committerColin Guthrie <colin@mageia.org>2015-02-08 21:19:21 +0000
commit2969bde783d7e815a9867fe323e17394369579aa (patch)
treecb637fa417136edd9a19b8d0433e54d001ca5de2 /perl-install/any.pm
parent6879c7524e599ae82311c03c89bd43286e60868a (diff)
downloaddrakx-2969bde783d7e815a9867fe323e17394369579aa.tar
drakx-2969bde783d7e815a9867fe323e17394369579aa.tar.gz
drakx-2969bde783d7e815a9867fe323e17394369579aa.tar.bz2
drakx-2969bde783d7e815a9867fe323e17394369579aa.tar.xz
drakx-2969bde783d7e815a9867fe323e17394369579aa.zip
users: Make sure to restart accounts-daemon after adding users (mga#15113)
This prevents various details being loaded about the user when they first login (including being listed in GDM and other user editing bits within GNOME). It also has some effect on i18n where the user's language settings are totally reset (to en_US) rather than inheriting the system prefs which seems to be the problem presented in mga#14476
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 8042a5539..fd80a4654 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -81,6 +81,7 @@ sub create_user {
? ('-l', $u->{name}, $u->{rename_from})
: $u->{name}));
symlink($u->{home}, $symlink_home_from) if $symlink_home_from;
+ eval { run_program::rooted($::prefix, 'systemctl', 'try-restart', 'accounts-daemon.service') };
}
my (undef, undef, $uid, $gid, undef, undef, undef, $home) = getpwnam($u->{name});