execute_command

Function execute_command 

Source
pub unsafe extern "C" fn execute_command(
    wd: *const c_char,
    cmd: *const c_char,
    run_in_term: gboolean,
    context: *mut RofiHelperExecuteContext,
) -> gboolean
Expand description

Executes the comand. If needed memebrs of context are null, they will be filled.

Returns true when successful, false otherwise.

  • wd: The working directory (optional).
  • cmd: The command to execute.
  • run_in_term: Indicates if the command should be run in a terminal.
  • context: The startup notification context, if any.