[gnome-builder/wip/chergert/pipeline-merge] flatpak: Add back gbp_flatpak_runtime_prepare_configuration
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/pipeline-merge] flatpak: Add back gbp_flatpak_runtime_prepare_configuration
- Date: Tue, 7 Feb 2017 05:01:45 +0000 (UTC)
commit 84e86aa31e39b1480453e79271ee4faee922b29f
Author: Matthew Leeds <mleeds redhat com>
Date: Mon Feb 6 22:51:58 2017 -0600
flatpak: Add back gbp_flatpak_runtime_prepare_configuration
This was dropped unintentionally
plugins/flatpak/gbp-flatpak-runtime.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime.c b/plugins/flatpak/gbp-flatpak-runtime.c
index bc1b577..6503b32 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -301,6 +301,18 @@ gbp_flatpak_runtime_create_runner (IdeRuntime *runtime,
}
static void
+gbp_flatpak_runtime_prepare_configuration (IdeRuntime *runtime,
+ IdeConfiguration *configuration)
+{
+ GbpFlatpakRuntime* self = (GbpFlatpakRuntime *)runtime;
+
+ g_assert (GBP_IS_FLATPAK_RUNTIME (self));
+ g_assert (IDE_IS_CONFIGURATION (configuration));
+
+ ide_configuration_set_prefix (configuration, "/app");
+}
+
+static void
gbp_flatpak_runtime_set_deploy_dir (GbpFlatpakRuntime *self,
const gchar *deploy_dir)
{
@@ -459,6 +471,7 @@ gbp_flatpak_runtime_class_init (GbpFlatpakRuntimeClass *klass)
runtime_class->create_launcher = gbp_flatpak_runtime_create_launcher;
runtime_class->create_runner = gbp_flatpak_runtime_create_runner;
runtime_class->contains_program_in_path = gbp_flatpak_runtime_contains_program_in_path;
+ runtime_class->prepare_configuration = gbp_flatpak_runtime_prepare_configuration;
runtime_class->translate_file = gbp_flatpak_runtime_translate_file;
properties [PROP_BRANCH] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]