GSubprocessLauncher: don't get empty environment
authorRyan Lortie <desrt@desrt.ca>
Tue, 4 Mar 2014 13:55:00 +0000 (08:55 -0500)
committerRyan Lortie <desrt@desrt.ca>
Tue, 4 Mar 2014 13:55:00 +0000 (08:55 -0500)
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

gio/gsubprocesslauncher.c

index b61fc58..c40d17d 100644 (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;