[gnome-builder] subprocess: be more aggressive about setting fallback envvars
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] subprocess: be more aggressive about setting fallback envvars
- Date: Sun, 12 Nov 2017 05:03:48 +0000 (UTC)
commit 352dbeb05f95dceb1a46cf11c749f78ac249b543
Author: Christian Hergert <chergert redhat com>
Date: Sat Nov 11 21:03:32 2017 -0800
subprocess: be more aggressive about setting fallback envvars
If we're going to run something on the host from flatak, make extra sure
we have some basic environment settings.
src/libide/subprocess/ide-subprocess-launcher.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libide/subprocess/ide-subprocess-launcher.c b/src/libide/subprocess/ide-subprocess-launcher.c
index 018a290..2cf5574 100644
--- a/src/libide/subprocess/ide-subprocess-launcher.c
+++ b/src/libide/subprocess/ide-subprocess-launcher.c
@@ -386,7 +386,7 @@ ide_subprocess_launcher_real_spawn (IdeSubprocessLauncher *self,
task = g_task_new (self, cancellable, NULL, NULL);
g_task_set_source_tag (task, ide_subprocess_launcher_real_spawn);
- if (priv->clear_env)
+ if (priv->clear_env || (ide_is_flatpak () && priv->run_on_host))
{
/*
* Many things break without at least PATH, HOME, etc. being set.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]