[gnome-builder] libide/foundry: give post-install commands a title



commit dd5813e4b0e1ffc590d13349140c979d2a04db4e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 13 17:43:59 2022 -0700

    libide/foundry: give post-install commands a title

 src/libide/foundry/ide-pipeline.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/libide/foundry/ide-pipeline.c b/src/libide/foundry/ide-pipeline.c
index 1e62f7c95..42b2cee6e 100644
--- a/src/libide/foundry/ide-pipeline.c
+++ b/src/libide/foundry/ide-pipeline.c
@@ -1129,6 +1129,7 @@ register_post_install_commands_stage (IdePipeline *self,
     {
       g_autoptr(IdeSubprocessLauncher) launcher = NULL;
       g_autoptr(IdePipelineStage) stage = NULL;
+      g_autofree char *title = NULL;
 
       if (!(launcher = ide_pipeline_create_launcher (self, &error)))
         {
@@ -1140,8 +1141,12 @@ register_post_install_commands_stage (IdePipeline *self,
       ide_subprocess_launcher_push_argv (launcher, "-c");
       ide_subprocess_launcher_push_argv (launcher, post_install_commands[i]);
 
+      /* translators: %s is replaced with the post-install shell command */
+      title = g_strdup_printf (_("Post-install (%s)"), post_install_commands[i]);
+
       stage = g_object_new (IDE_TYPE_PIPELINE_STAGE_LAUNCHER,
                             "launcher", launcher,
+                            "name", title,
                             NULL);
       g_signal_connect (stage,
                         "query",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]