mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 18:26:19 +01:00
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:
parent
9da88a12c5
commit
e767204e0e
@ -174,7 +174,7 @@ g_subprocess_launcher_finalize (GObject *object)
|
|||||||
static void
|
static void
|
||||||
g_subprocess_launcher_init (GSubprocessLauncher *self)
|
g_subprocess_launcher_init (GSubprocessLauncher *self)
|
||||||
{
|
{
|
||||||
self->envp = g_listenv ();
|
self->envp = g_get_environ ();
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
self->stdin_fd = -1;
|
self->stdin_fd = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user