aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStefano Facchini <stefano.facchini@gmail.com>2012-09-07 05:15:08 +0800
committerStefano Facchini <stefano.facchini@gmail.com>2012-09-07 16:03:44 +0800
commitadfecc2bb03ed280543dc5ad4ba6fa350ff00d8c (patch)
tree2f712d25572cdcb41702bb6be6ac9ea78fea18dd /lib
parent1a1b5a9c0360e7dce2f3aa8c56cfa6a9795a1f31 (diff)
downloadgsoc2013-epiphany-adfecc2bb03ed280543dc5ad4ba6fa350ff00d8c.tar
gsoc2013-epiphany-adfecc2bb03ed280543dc5ad4ba6fa350ff00d8c.tar.gz
gsoc2013-epiphany-adfecc2bb03ed280543dc5ad4ba6fa350ff00d8c.tar.bz2
gsoc2013-epiphany-adfecc2bb03ed280543dc5ad4ba6fa350ff00d8c.tar.lz
gsoc2013-epiphany-adfecc2bb03ed280543dc5ad4ba6fa350ff00d8c.tar.xz
gsoc2013-epiphany-adfecc2bb03ed280543dc5ad4ba6fa350ff00d8c.tar.zst
gsoc2013-epiphany-adfecc2bb03ed280543dc5ad4ba6fa350ff00d8c.zip
ephy-profile-utils: don't replace environment when spwaning ephy-profile-migrator
Instead, just append the new variable to the existing environment. https://bugzilla.gnome.org/show_bug.cgi?id=683538
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-profile-utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ephy-profile-utils.c b/lib/ephy-profile-utils.c
index 51dd7e1b8..2c685e05f 100644
--- a/lib/ephy-profile-utils.c
+++ b/lib/ephy-profile-utils.c
@@ -208,7 +208,11 @@ ephy_profile_utils_do_migration (const char *profile_directory, int test_to_run,
int status;
char *argv[6] = { EPHY_PROFILE_MIGRATOR, "-v" };
int i = 2; /* index for argv, start filling at 2. */
- char *envp[1] = { "EPHY_LOG_MODULES=ephy-profile" };
+ char **envp;
+
+ envp = g_environ_setenv (g_get_environ (),
+ "EPHY_LOG_MODULES", "ephy-profile",
+ TRUE);
argv[i++] = version = g_strdup_printf ("%d", EPHY_PROFILE_MIGRATION_VERSION);
@@ -234,6 +238,7 @@ ephy_profile_utils_do_migration (const char *profile_directory, int test_to_run,
&status, &error);
g_free (index);
g_free (version);
+ g_strfreev (envp);
if (error) {
LOG ("Failed to run migrator: %s", error->message);