diff options
author | Colin Walters <walters@verbum.org> | 2012-09-13 16:08:31 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-09-15 10:27:07 -0400 |
commit | a5df86210af93b3fb6cf1d84daec5d0a0e3f4cb9 (patch) | |
tree | fc902e45dfa6b3361d156969eaf4fe1857692d87 | |
parent | aea73de0f4782699585bf9bb49b468f3e1f7e726 (diff) | |
download | gdm-a5df86210af93b3fb6cf1d84daec5d0a0e3f4cb9.tar.gz |
daemon: Create home directory for greeter user
For OSTree, I'm trying to move components to a model where they
automatically create whatever directories/files are needed in /var.
This helps with upgrade/downgrade scenarios.
In GDM's case, this is pretty easy to do because we start with full
root privileges.
https://bugzilla.gnome.org/show_bug.cgi?id=630485
-rw-r--r-- | daemon/gdm-launch-environment.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/gdm-launch-environment.c b/daemon/gdm-launch-environment.c index 6ceb47bc..10e9c323 100644 --- a/daemon/gdm-launch-environment.c +++ b/daemon/gdm-launch-environment.c @@ -774,6 +774,10 @@ gdm_launch_environment_start (GdmLaunchEnvironment *launch_environment) goto out; } + /* Create the home directory too */ + if (!ensure_directory_with_uid_gid (passwd_entry->pw_dir, uid, gid, error)) + goto out; + if (!start_dbus_daemon (launch_environment, uid, gid, error)) { goto out; } |