Commit 48bb35d7 authored by Christian Hergert's avatar Christian Hergert

flatpak: fix .Debug path translation

The self->sdk value will be something like "org.gnome.Sdk/x86_64/master"
and this expected "org.gnome.Sdk". We already have a way to get just the
identifier without arch/branch, so we should use that.

This fixes some path translations into debug data paths.
parent 01cf5ec7
......@@ -321,14 +321,18 @@ gbp_flatpak_runtime_get_debug_dir (GbpFlatpakRuntime *self)
if G_UNLIKELY (self->debug_dir == NULL)
const gchar *ids[] = {
g_autofree gchar *sdk_name = NULL;
const gchar *ids[2];
sdk_name = gbp_flatpak_runtime_get_sdk_name (self);
ids[0] = self->platform;
ids[1] = sdk_name;
for (guint i = 0; i < G_N_ELEMENTS (ids); i++)
g_autofree gchar *name = g_strdup_printf ("%s.Debug", ids[i]);
const gchar *id = ids[i];
g_autofree gchar *name = g_strdup_printf ("%s.Debug", id);
g_autofree gchar *deploy_path = NULL;
g_autofree gchar *path = NULL;
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