mirror of
https://github.com/davatorium/rofi.git
synced 2025-04-14 17:43:01 -04:00
parent
050fd66c02
commit
5b843bd08b
1 changed files with 5 additions and 3 deletions
|
@ -121,17 +121,19 @@ static void exec_cmd ( const char *cmd, int run_in_term )
|
|||
return;
|
||||
}
|
||||
|
||||
char *path = g_build_filename ( cache_dir, RUN_CACHE_FILE, NULL );
|
||||
if ( execsh ( lf_cmd, run_in_term ) ) {
|
||||
/**
|
||||
* This happens in non-critical time (After launching app)
|
||||
* It is allowed to be a bit slower.
|
||||
*/
|
||||
char *path = g_build_filename ( cache_dir, RUN_CACHE_FILE, NULL );
|
||||
|
||||
history_set ( path, cmd );
|
||||
|
||||
g_free ( path );
|
||||
}
|
||||
else {
|
||||
history_remove ( path, cmd );
|
||||
}
|
||||
g_free ( path );
|
||||
g_free ( lf_cmd );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue