[gnome-builder/gnome-builder-3-26] runtime: ensure host runner runs on the host system



commit 47ee0536430577649d080a4f89200017911214fe
Author: Christian Hergert <chergert redhat com>
Date:   Sat Nov 11 12:28:11 2017 -0800

    runtime: ensure host runner runs on the host system
    
    When running with the "host" runtime from a flatpak release of Builder, we
    were running the application inside the flatpak runtime.
    
    This does the same thing we do for the launcher, and ensures that the
    program is instead launched on the host.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790198

 libide/runtimes/ide-runtime.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libide/runtimes/ide-runtime.c b/libide/runtimes/ide-runtime.c
index 7cdcbf8..4a0d02f 100644
--- a/libide/runtimes/ide-runtime.c
+++ b/libide/runtimes/ide-runtime.c
@@ -163,6 +163,7 @@ static IdeRunner *
 ide_runtime_real_create_runner (IdeRuntime     *self,
                                 IdeBuildTarget *build_target)
 {
+  IdeRuntimePrivate *priv = ide_runtime_get_instance_private (self);
   g_autofree gchar *name = NULL;
   g_autofree gchar *binpath = NULL;
   g_autofree gchar *schemadir = NULL;
@@ -186,6 +187,9 @@ ide_runtime_real_create_runner (IdeRuntime     *self,
 
   g_assert (IDE_IS_RUNNER (runner));
 
+  if (ide_str_equal0 (priv->id, "host"))
+    ide_runner_set_run_on_host (runner, TRUE);
+
   g_object_get (build_target,
                 "install-directory", &installdir,
                 "name", &name,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]