rofi
1.6.1
|
![]() |
Variables | |
Mode | run_mode |
Mode | run_mode |
#define | G_LOG_DOMAIN "Dialogs.Run" |
#define | RUN_CACHE_FILE "rofi-3.runcache" |
static gboolean | exec_cmd (const char *cmd, int run_in_term) |
static void | delete_entry (const char *cmd) |
static int | sort_func (const void *a, const void *b, G_GNUC_UNUSED void *data) |
static char ** | get_apps_external (char **retv, unsigned int *length, unsigned int num_favorites) |
static char ** | get_apps (unsigned int *length) |
static int | run_mode_init (Mode *sw) |
static void | run_mode_destroy (Mode *sw) |
static unsigned int | run_mode_get_num_entries (const Mode *sw) |
static ModeMode | run_mode_result (Mode *sw, int mretv, char **input, unsigned int selected_line) |
static char * | _get_display_value (const Mode *sw, unsigned int selected_line, G_GNUC_UNUSED int *state, G_GNUC_UNUSED GList **list, int get_entry) |
static int | run_token_match (const Mode *sw, rofi_int_matcher **tokens, unsigned int index) |
This mode uses the following options from the config object:
#define G_LOG_DOMAIN "Dialogs.Run" |
#define RUN_CACHE_FILE "rofi-3.runcache" |
Name of the history file where previously chosen commands are stored.
Definition at line 62 of file run.c.
Referenced by delete_entry(), exec_cmd(), and get_apps().
|
static |
Definition at line 398 of file run.c.
References RunModePrivateData::cmd_list, and rofi_mode::private_data.
|
static |
cmd | The command to remove from history |
Remove command from history.
Definition at line 122 of file run.c.
References cache_dir, history_remove(), and RUN_CACHE_FILE.
Referenced by run_mode_result().
|
static |
cmd | The cmd to execute |
run_in_term | Indicate if command should be run in a terminal |
Execute command and add to history.
This happens in non-critical time (After launching app) It is allowed to be a bit slower.
Definition at line 81 of file run.c.
References cache_dir, helper_execute_command(), history_remove(), history_set(), RofiHelperExecuteContext::name, and RUN_CACHE_FILE.
Referenced by run_mode_result().
|
static |
Internal spider used to get list of executables.
Definition at line 210 of file run.c.
References cache_dir, config, get_apps_external(), history_get_list(), rofi_expand_path(), RUN_CACHE_FILE, Settings::run_list_command, sort_func(), and TICK_N.
Referenced by run_mode_init().
|
static |
External spider to get list of executables.
Definition at line 160 of file run.c.
References config, execute_generator(), and Settings::run_list_command.
Referenced by get_apps().
|
static |
Definition at line 354 of file run.c.
References RunModePrivateData::cmd_list, and rofi_mode::private_data.
Referenced by run_mode_result().
|
static |
Definition at line 364 of file run.c.
References RunModePrivateData::cmd_list_length, and rofi_mode::private_data.
|
static |
Definition at line 344 of file run.c.
References RunModePrivateData::cmd_list, RunModePrivateData::cmd_list_length, get_apps(), and rofi_mode::private_data.
Referenced by run_mode_result().
|
static |
Definition at line 370 of file run.c.
References RunModePrivateData::cmd_list, delete_entry(), exec_cmd(), MENU_CUSTOM_ACTION, MENU_CUSTOM_INPUT, MENU_ENTRY_DELETE, MENU_OK, MODE_EXIT, rofi_mode::private_data, RELOAD_DIALOG, run_mode_destroy(), and run_mode_init().
|
static |
Definition at line 404 of file run.c.
References RunModePrivateData::cmd_list, helper_token_match(), and rofi_mode::private_data.
|
static |
a | The First key to compare |
b | The second key to compare |
data | Unused. |
Function used for sorting.
Definition at line 140 of file run.c.
Referenced by get_apps().
Mode run_mode |
Mode object representing the run dialog.
Definition at line 411 of file run.c.
Referenced by rofi_collect_modi().
Mode run_mode |
Mode object representing the run dialog.
Definition at line 411 of file run.c.
Referenced by rofi_collect_modi().