mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
gsubprocesslauncher: Use "env" instead of "environ"
The latter may come from system headers. https://bugzilla.gnome.org/show_bug.cgi?id=721059
This commit is contained in:
parent
091e466095
commit
c26c557908
@ -224,7 +224,7 @@ g_subprocess_launcher_new (GSubprocessFlags flags)
|
|||||||
/**
|
/**
|
||||||
* g_subprocess_launcher_set_environ:
|
* g_subprocess_launcher_set_environ:
|
||||||
* @self: a #GSubprocess
|
* @self: a #GSubprocess
|
||||||
* @environ: the replacement environment
|
* @env: the replacement environment
|
||||||
*
|
*
|
||||||
* Replace the entire environment of processes launched from this
|
* Replace the entire environment of processes launched from this
|
||||||
* launcher with the given 'environ' variable.
|
* launcher with the given 'environ' variable.
|
||||||
@ -244,10 +244,10 @@ g_subprocess_launcher_new (GSubprocessFlags flags)
|
|||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
g_subprocess_launcher_set_environ (GSubprocessLauncher *self,
|
g_subprocess_launcher_set_environ (GSubprocessLauncher *self,
|
||||||
gchar **environ)
|
gchar **env)
|
||||||
{
|
{
|
||||||
g_strfreev (self->envp);
|
g_strfreev (self->envp);
|
||||||
self->envp = g_strdupv (environ);
|
self->envp = g_strdupv (env);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +56,7 @@ GSubprocess * g_subprocess_launcher_spawnv (GSubpro
|
|||||||
|
|
||||||
GLIB_AVAILABLE_IN_2_40
|
GLIB_AVAILABLE_IN_2_40
|
||||||
void g_subprocess_launcher_set_environ (GSubprocessLauncher *self,
|
void g_subprocess_launcher_set_environ (GSubprocessLauncher *self,
|
||||||
gchar **environ);
|
gchar **env);
|
||||||
|
|
||||||
GLIB_AVAILABLE_IN_2_40
|
GLIB_AVAILABLE_IN_2_40
|
||||||
void g_subprocess_launcher_setenv (GSubprocessLauncher *self,
|
void g_subprocess_launcher_setenv (GSubprocessLauncher *self,
|
||||||
|
Loading…
Reference in New Issue
Block a user