mirror of https://github.com/davatorium/rofi.git
parent
050fd66c02
commit
5b843bd08b
|
@ -121,17 +121,19 @@ static void exec_cmd ( const char *cmd, int run_in_term )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *path = g_build_filename ( cache_dir, RUN_CACHE_FILE, NULL );
|
||||||
if ( execsh ( lf_cmd, run_in_term ) ) {
|
if ( execsh ( lf_cmd, run_in_term ) ) {
|
||||||
/**
|
/**
|
||||||
* This happens in non-critical time (After launching app)
|
* This happens in non-critical time (After launching app)
|
||||||
* It is allowed to be a bit slower.
|
* It is allowed to be a bit slower.
|
||||||
*/
|
*/
|
||||||
char *path = g_build_filename ( cache_dir, RUN_CACHE_FILE, NULL );
|
|
||||||
|
|
||||||
history_set ( path, cmd );
|
history_set ( path, cmd );
|
||||||
|
|
||||||
g_free ( path );
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
history_remove ( path, cmd );
|
||||||
|
}
|
||||||
|
g_free ( path );
|
||||||
g_free ( lf_cmd );
|
g_free ( lf_cmd );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue