GSubprocessLauncher: don't get empty environment

Use g_get_environ() to get the environment variables with their values
instead of g_listenv() which only lists off the keys.

https://bugzilla.gnome.org/show_bug.cgi?id=725651
This commit is contained in:
Ryan Lortie 2014-03-04 08:55:00 -05:00
parent 9da88a12c5
commit e767204e0e

View File

@ -174,7 +174,7 @@ g_subprocess_launcher_finalize (GObject *object)
static void
g_subprocess_launcher_init (GSubprocessLauncher *self)
{
self->envp = g_listenv ();
self->envp = g_get_environ ();
#ifdef G_OS_UNIX
self->stdin_fd = -1;