ssh: Add startup notification support

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-06-02 14:57:28 +02:00
parent 3f8af0d7c5
commit a6f51393d3
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
1 changed files with 11 additions and 1 deletions

View File

@ -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 );
}
/**