[gnome-builder] terminal: write to console to indicate application startup



commit 03190f7957c53d4faed8cc4e157e4b6c3bc28bb4
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jun 16 14:05:53 2018 -0700

    terminal: write to console to indicate application startup
    
    We need to write to the PTY before the application starts, so that we
    don't race on output. But that also means we don't know that it has spawned
    successfully. Therefore, we only indicate that we're trying to spawn the
    application.
    
    Related to #540

 src/plugins/terminal/gb-terminal-workbench-addin.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/terminal/gb-terminal-workbench-addin.c 
b/src/plugins/terminal/gb-terminal-workbench-addin.c
index de11a6f49..2018a4160 100644
--- a/src/plugins/terminal/gb-terminal-workbench-addin.c
+++ b/src/plugins/terminal/gb-terminal-workbench-addin.c
@@ -228,6 +228,8 @@ on_run_manager_run (GbTerminalWorkbenchAddin *self,
   ide_environment_setenv (env, "TERM", "xterm-256color");
   ide_environment_setenv (env, "INSIDE_GNOME_BUILDER", PACKAGE_VERSION);
 
+  gb_terminal_view_feed (self->run_terminal, _("Application starting...\r\n"));
+
 failure:
 
   g_clear_object (&pty);


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