mirror of
https://github.com/davatorium/rofi.git
synced 2025-03-24 17:16:46 -04:00
Append ':' after Switcher name.
This commit is contained in:
parent
43bc36c1a6
commit
8cecc27992
1 changed files with 4 additions and 1 deletions
|
@ -185,7 +185,10 @@ ScriptOptions *script_switcher_parse_setup ( const char *str )
|
|||
// TODO: This is naive and can be improved.
|
||||
for ( char *token = strtok_r ( parse, ":", &endp ); token != NULL; token = strtok_r ( NULL, ":", &endp ) ) {
|
||||
if ( index == 0 ) {
|
||||
sw->name = strdup ( token );
|
||||
if(asprintf(&(sw->name), "%s:", token) <= 0) {
|
||||
fprintf(stderr, "Failed to allocate string.\n");
|
||||
abort();
|
||||
}
|
||||
}
|
||||
else if ( index == 1 ) {
|
||||
sw->script_path = strdup ( token );
|
||||
|
|
Loading…
Add table
Reference in a new issue