rofi 1.7.5
|
Variables | |
Mode | run_mode |
Mode | run_mode |
#define | G_LOG_DOMAIN "Modes.Run" |
#define | RUN_CACHE_FILE "rofi-3.runcache" |
static gboolean | exec_cmd (const char *cmd, int run_in_term) |
static void | delete_entry (const RunEntry *cmd) |
static int | sort_func (const void *a, const void *b, G_GNUC_UNUSED void *data) |
static RunEntry * | get_apps_external (RunEntry *retv, unsigned int *length, unsigned int num_favorites) |
static RunEntry * | 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) |
static char * | run_get_message (const Mode *sw) |
static cairo_surface_t * | _get_icon (const Mode *sw, unsigned int selected_line, unsigned int height) |
This mode uses the following options from the config object:
#define G_LOG_DOMAIN "Modes.Run" |
#define RUN_CACHE_FILE "rofi-3.runcache" |
Name of the history file where previously chosen commands are stored.
Definition at line 63 of file run.c.
Referenced by delete_entry(), exec_cmd(), and get_apps().
|
static |
Definition at line 499 of file run.c.
References rofi_mode::_get_display_value, RunModePrivateData::cmd_list, RunModePrivateData::completer, RunEntry::entry, RunModePrivateData::file_complete, and rofi_mode::private_data.
|
static |
lookup icon
Definition at line 536 of file run.c.
References rofi_mode::_get_icon, RunModePrivateData::cmd_list, RunModePrivateData::completer, RunEntry::entry, RunModePrivateData::file_complete, RunEntry::icon_fetch_size, RunEntry::icon_fetch_uid, mode_get_private_data(), rofi_icon_fetcher_get(), and rofi_icon_fetcher_query().
|
static |
cmd | The command to remove from history |
Remove command from history.
Definition at line 137 of file run.c.
References cache_dir, RunEntry::entry, 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 97 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 230 of file run.c.
References cache_dir, config, RunEntry::entry, get_apps_external(), history_get_list(), RunEntry::icon, RunEntry::icon_fetch_size, RunEntry::icon_fetch_uid, 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 174 of file run.c.
References config, RunEntry::entry, execute_generator(), RunEntry::icon, RunEntry::icon_fetch_size, RunEntry::icon_fetch_uid, and Settings::run_list_command.
Referenced by get_apps().
|
static |
Definition at line 518 of file run.c.
References RunModePrivateData::cmd_list, RunModePrivateData::cmd_list_length, RunModePrivateData::completer, RunEntry::entry, RunModePrivateData::file_complete, mode_get_message(), rofi_mode::private_data, and RunModePrivateData::selected_line.
|
static |
Definition at line 392 of file run.c.
References RunModePrivateData::cmd_list, RunModePrivateData::cmd_list_length, RunModePrivateData::completer, RunEntry::entry, RunEntry::icon, mode_destroy(), RunModePrivateData::old_completer_input, RunModePrivateData::old_input, and rofi_mode::private_data.
Referenced by run_mode_result().
|
static |
Definition at line 413 of file run.c.
References rofi_mode::_get_num_entries, RunModePrivateData::cmd_list_length, RunModePrivateData::completer, RunModePrivateData::file_complete, and rofi_mode::private_data.
|
static |
Definition at line 382 of file run.c.
References RunModePrivateData::cmd_list, RunModePrivateData::cmd_list_length, RunModePrivateData::completer, get_apps(), and rofi_mode::private_data.
Referenced by run_mode_result().
|
static |
Definition at line 421 of file run.c.
References RunModePrivateData::cmd_list, RunModePrivateData::cmd_list_length, RunModePrivateData::completer, create_new_file_browser(), delete_entry(), RunEntry::entry, exec_cmd(), file_browser_mode_completer(), RunModePrivateData::file_complete, MENU_CANCEL, MENU_COMPLETE, MENU_CUSTOM_ACTION, MENU_CUSTOM_COMMAND, MENU_CUSTOM_INPUT, MENU_ENTRY_DELETE, MENU_LOWER_MASK, MENU_OK, MODE_EXIT, mode_init(), RunModePrivateData::old_completer_input, RunModePrivateData::old_input, rofi_mode::private_data, RELOAD_DIALOG, run_mode_destroy(), run_mode_init(), and RunModePrivateData::selected_line.
|
static |
Definition at line 510 of file run.c.
References rofi_mode::_token_match, RunModePrivateData::cmd_list, RunModePrivateData::completer, RunEntry::entry, RunModePrivateData::file_complete, 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 155 of file run.c.
References RunEntry::entry.
Referenced by get_apps().
|
extern |
Mode object representing the run dialog.
Definition at line 562 of file run.c.
Referenced by rofi_collect_modes().
Mode run_mode |
Mode object representing the run dialog.
Definition at line 562 of file run.c.
Referenced by rofi_collect_modes().