[gnome-builder] runtime: ensure host runner runs on the host system
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] runtime: ensure host runner runs on the host system
- Date: Sat, 11 Nov 2017 20:28:44 +0000 (UTC)
commit 24793a91c0b90ef02d6ebfb030c93a9838244c77
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
src/libide/runtimes/ide-runtime.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/runtimes/ide-runtime.c b/src/libide/runtimes/ide-runtime.c
index d2f670d..002927b 100644
--- a/src/libide/runtimes/ide-runtime.c
+++ b/src/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_autoptr(GFile) installdir = NULL;
const gchar *slash;
@@ -178,6 +179,9 @@ ide_runtime_real_create_runner (IdeRuntime *self,
runner = ide_runner_new (context);
g_assert (IDE_IS_RUNNER (runner));
+ if (ide_str_equal0 (priv->id, "host"))
+ ide_runner_set_run_on_host (runner, TRUE);
+
if (build_target != NULL)
g_object_get (build_target,
"install-directory", &installdir,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]