Commit dbc30a52 authored by Christian Hergert's avatar Christian Hergert
Browse files

runtime: only set prefix if not already set

parent 08fd5cf4
......@@ -106,26 +106,30 @@ ide_runtime_real_prepare_configuration (IdeRuntime *self,
IdeConfiguration *configuration)
{
IdeRuntimePrivate *priv = ide_runtime_get_instance_private (self);
g_autofree gchar *install_path = NULL;
IdeContext *context;
IdeProject *project;
const gchar *project_id;
g_assert (IDE_IS_RUNTIME (self));
g_assert (IDE_IS_CONFIGURATION (configuration));
context = ide_object_get_context (IDE_OBJECT (self));
project = ide_context_get_project (context);
project_id = ide_project_get_id (project);
install_path = g_build_filename (g_get_user_cache_dir (),
"gnome-builder",
"install",
project_id,
priv->id,
NULL);
ide_configuration_set_prefix (configuration, install_path);
if (NULL == ide_configuration_get_prefix (configuration))
{
g_autofree gchar *install_path = NULL;
IdeContext *context;
IdeProject *project;
const gchar *project_id;
context = ide_object_get_context (IDE_OBJECT (self));
project = ide_context_get_project (context);
project_id = ide_project_get_id (project);
install_path = g_build_filename (g_get_user_cache_dir (),
"gnome-builder",
"install",
project_id,
priv->id,
NULL);
ide_configuration_set_prefix (configuration, install_path);
}
}
static IdeRunner *
......
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