Commit b0e307c6 authored by Matthew Leeds's avatar Matthew Leeds
Browse files

flatpak: Use gbp_flatpak_get_staging_dir

parent 13192047
......@@ -25,6 +25,7 @@
#include "gbp-flatpak-subprocess-launcher.h"
#include "gbp-flatpak-runner.h"
#include "gbp-flatpak-configuration.h"
#include "gbp-flatpak-util.h"
struct _GbpFlatpakRuntime
......@@ -53,21 +54,11 @@ static GParamSpec *properties [N_PROPS];
static gchar *
get_staging_directory (GbpFlatpakRuntime *self)
IdeContext *context;
IdeProject *project;
g_assert (GBP_IS_FLATPAK_RUNTIME (self));
IdeContext *context = ide_object_get_context (IDE_OBJECT (self));
IdeConfigurationManager *config_manager = ide_context_get_configuration_manager (context);
IdeConfiguration *config = ide_configuration_manager_get_current (config_manager);
context = ide_object_get_context (IDE_OBJECT (self));
project = ide_context_get_project (context);
return g_build_filename (g_get_user_cache_dir (),
ide_project_get_id (project),
ide_runtime_get_id (IDE_RUNTIME (self)),
return gbp_flatpak_get_staging_dir (config);
static gboolean
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment