From a6f51393d3c732e1de782784623661d5028e5c81 Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Fri, 2 Jun 2017 14:57:28 +0200 Subject: ssh: Add startup notification support Signed-off-by: Quentin Glidic --- source/dialogs/ssh.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'source/dialogs') diff --git a/source/dialogs/ssh.c b/source/dialogs/ssh.c index 5be70221..ccba8eb9 100644 --- a/source/dialogs/ssh.c +++ b/source/dialogs/ssh.c @@ -81,7 +81,17 @@ static inline int execshssh ( const char *host ) helper_parse_setup ( config.ssh_command, &args, &argsv, "{host}", host, NULL ); - return helper_execute ( NULL, args, "ssh ", host, NULL ); + gsize l = strlen ( "Connecting to '' via rofi" ) + strlen ( host ) + 1; + gchar *desc = g_newa ( gchar, l ); + + g_snprintf ( desc, l, "Connecting to '%s' via rofi", host ); + + RofiHelperExecuteContext context = { + .name = "ssh", + .description = desc, + .command = "ssh", + }; + return helper_execute ( NULL, args, "ssh ", host, &context ); } /** -- cgit v1.2.3