diff options
author | William Jon McCann <mccann@src.gnome.org> | 2007-06-20 20:55:57 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2007-06-20 20:55:57 +0000 |
commit | 56e88cefbf42ca0831b4bed425b3b379ed8abec3 (patch) | |
tree | 27cc396951701c109b3f7c6dc3c2828782c3a806 /daemon/gdm-simple-slave.c | |
parent | dc20d237de6feaab3736e30d557c270287b8ee10 (diff) | |
download | gdm-56e88cefbf42ca0831b4bed425b3b379ed8abec3.tar.gz |
Split the session code up into two parts that talk dbus
svn path=/branches/mccann-gobject/; revision=5009
Diffstat (limited to 'daemon/gdm-simple-slave.c')
-rw-r--r-- | daemon/gdm-simple-slave.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c index ef6888d3..0be3be9d 100644 --- a/daemon/gdm-simple-slave.c +++ b/daemon/gdm-simple-slave.c @@ -549,15 +549,12 @@ setup_session_environment (GdmSimpleSlave *slave) } static void -on_user_verified (GdmSession *session, - GdmSimpleSlave *slave) +on_user_verified (GdmSession *session, + GdmSimpleSlave *slave) { char *username; - int argc; - char **argv; char *command; char *filename; - GError *error; gboolean res; gdm_greeter_proxy_stop (slave->priv->greeter); @@ -584,20 +581,10 @@ on_user_verified (GdmSession *session, return; } - error = NULL; - res = g_shell_parse_argv (command, &argc, &argv, &error); - if (! res) { - g_warning ("Could not parse command: %s", error->message); - g_error_free (error); - } - - gdm_session_start_program (session, - argc, - (const char **)argv); + gdm_session_start_program (session, command); g_free (filename); g_free (command); - g_strfreev (argv); } static void @@ -696,8 +683,6 @@ on_greeter_connected (GdmGreeterServer *greeter_server, "gdm", NULL /* hostname */, "/dev/console", - STDOUT_FILENO, - STDERR_FILENO, NULL); /* If XDMCP stop pinging */ |