[gnome-builder/wip/cosimoc/flatpak-override-config: 3/4] flatpak: use self->app_id for flatpak commands
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/cosimoc/flatpak-override-config: 3/4] flatpak: use self->app_id for flatpak commands
- Date: Sun, 18 Dec 2016 21:16:34 +0000 (UTC)
commit 686c3c2e47a6f5c158172e23812f73beb937d472
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Dec 18 13:10:27 2016 -0800
flatpak: use self->app_id for flatpak commands
Instead of the ID from the configuration. This is the same in most
cases, but we're adding a way to override it in the configuration. When
that happens, the override should be used to run the application, but
not to initialize the build system.
plugins/flatpak/gbp-flatpak-runtime.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime.c b/plugins/flatpak/gbp-flatpak-runtime.c
index ff7f6ba..0583705 100644
--- a/plugins/flatpak/gbp-flatpak-runtime.c
+++ b/plugins/flatpak/gbp-flatpak-runtime.c
@@ -451,7 +451,7 @@ gbp_flatpak_runtime_prebuild_worker (GTask *task,
g_autoptr(IdeSubprocessLauncher) launcher6 = NULL;
g_autoptr(IdeSubprocess) process6 = NULL;
- app_id = ide_configuration_get_app_id (configuration);
+ app_id = self->app_id;
if (ide_str_empty0 (app_id))
{
g_warning ("Could not determine application ID");
@@ -668,7 +668,7 @@ gbp_flatpak_runtime_postinstall_worker (GTask *task,
return;
}
- app_id = ide_configuration_get_app_id (configuration);
+ app_id = self->app_id;
if (ide_str_empty0 (app_id))
{
g_warning ("Could not determine application ID");
@@ -912,7 +912,7 @@ gbp_flatpak_runtime_create_runner (IdeRuntime *runtime,
runner = gbp_flatpak_runner_new (context);
g_assert (GBP_IS_FLATPAK_RUNNER (runner));
- app_id = ide_configuration_get_app_id (configuration);
+ app_id = self->app_id;
if (ide_str_empty0 (app_id))
{
g_warning ("Could not determine application ID");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]