mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
ssh: Add startup notification support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
3f8af0d7c5
commit
a6f51393d3
1 changed files with 11 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue