362eea
From d1acb1fc4dbf90afc4447f221ba864f6dc3d8370 Mon Sep 17 00:00:00 2001
362eea
From: Brian Cameron <brian.cameron@sun.com>
362eea
Date: Fri, 4 Dec 2009 18:42:11 -0600
362eea
Subject: [PATCH] Fix bug #603756, ensure runtime dir is always set.
362eea
362eea
---
362eea
 daemon/gdm-welcome-session.c |    3 +++
362eea
 1 files changed, 3 insertions(+), 0 deletions(-)
362eea
362eea
diff --git a/daemon/gdm-welcome-session.c b/daemon/gdm-welcome-session.c
362eea
index f340660..e113808 100644
362eea
--- a/daemon/gdm-welcome-session.c
362eea
+++ b/daemon/gdm-welcome-session.c
362eea
@@ -503,6 +503,7 @@ static gboolean
362eea
 spawn_command_line_sync_as_user (const char *command_line,
362eea
                                  const char *user_name,
362eea
                                  const char *group_name,
362eea
+                                 const char *runtime_dir,
362eea
                                  const char *log_file,
362eea
                                  char       **env,
362eea
                                  char       **std_output,
362eea
@@ -528,6 +529,7 @@ spawn_command_line_sync_as_user (const char *command_line,
362eea
 
362eea
         data.user_name = user_name;
362eea
         data.group_name = group_name;
362eea
+        data.runtime_dir = runtime_dir;
362eea
         data.log_file = log_file;
362eea
 
362eea
         local_error = NULL;
362eea
@@ -703,6 +705,7 @@ start_dbus_daemon (GdmWelcomeSession *welcome_session)
362eea
         res = spawn_command_line_sync_as_user (DBUS_LAUNCH_COMMAND,
362eea
                                                welcome_session->priv->user_name,
362eea
                                                welcome_session->priv->group_name,
362eea
+                                               welcome_session->priv->runtime_dir,
362eea
                                                NULL, /* log file */
362eea
                                                (char **)env->pdata,
362eea
                                                &std_out,
362eea
-- 
362eea
1.7.0.1
362eea