rofi 2.1.2
run.c
Go to the documentation of this file.
1/*
2 * rofi
3 *
4 * MIT/X11 License
5 * Copyright © 2013-2023 Qball Cow <qball@gmpclient.org>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining
8 * a copy of this software and associated documentation files (the
9 * "Software"), to deal in the Software without restriction, including
10 * without limitation the rights to use, copy, modify, merge, publish,
11 * distribute, sublicense, and/or sell copies of the Software, and to
12 * permit persons to whom the Software is furnished to do so, subject to
13 * the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be
16 * included in all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *
26 */
27
32
34#define G_LOG_DOMAIN "Modes.Run"
35
36#include "config.h"
37#include <stdio.h>
38#include <stdlib.h>
39
40#include <dirent.h>
41#include <errno.h>
42#include <limits.h>
43#include <signal.h>
44#include <string.h>
45#include <strings.h>
46#include <sys/types.h>
47#include <unistd.h>
48
49#include "display.h"
50#include "helper.h"
51#include "history.h"
52#include "modes/filebrowser.h"
53#include "modes/run.h"
54#include "rofi.h"
55#include "settings.h"
56
57#include "mode-private.h"
58
59#include "rofi-icon-fetcher.h"
60#include "timings.h"
64#define RUN_CACHE_FILE "rofi-4.runcache"
65
66typedef struct {
67 char *entry;
68 char *exec;
72 gboolean from_history;
73 /* Surface holding the icon. */
74 cairo_surface_t *icon;
75} RunEntry;
76
94
104static gboolean exec_cmd(const char *cmd, int run_in_term, const char *orig) {
105 GError *error = NULL;
106 if (!cmd || !cmd[0]) {
107 return FALSE;
108 }
109 gsize lf_cmd_size = 0;
110 gchar *lf_cmd = g_locale_from_utf8(cmd, -1, NULL, &lf_cmd_size, &error);
111 if (error != NULL) {
112 g_warning("Failed to convert command to locale encoding: %s",
113 error->message);
114 g_error_free(error);
115 return FALSE;
116 }
117
118 char *path = g_build_filename(cache_dir, RUN_CACHE_FILE, NULL);
119 RofiHelperExecuteContext context = {.name = NULL};
120 char *hist = g_strdup_printf("%s\x1f%s", orig, cmd);
121 // FIXME: assume startup notification support for terminals
122 if (helper_execute_command(NULL, lf_cmd, run_in_term,
123 run_in_term ? &context : NULL)) {
128
129 history_set(path, hist);
130 g_free(path);
131 g_free(lf_cmd);
132 g_free(hist);
133 return TRUE;
134 }
135 history_remove(path, hist);
136 g_free(hist);
137 g_free(path);
138 g_free(lf_cmd);
139 return FALSE;
140}
141
147static void delete_entry(const RunEntry *cmd) {
148 char *path = g_build_filename(cache_dir, RUN_CACHE_FILE, NULL);
149
150 char *hist = g_strdup_printf("%s\x1f%s", cmd->entry, cmd->exec);
151 history_remove(path, hist);
152 g_free(hist);
153 g_free(path);
154}
155
166static int sort_func(const void *a, const void *b, G_GNUC_UNUSED void *data) {
167 const RunEntry *astr = (const RunEntry *)a;
168 const RunEntry *bstr = (const RunEntry *)b;
169
170 if (astr->entry == NULL && bstr->entry == NULL) {
171 return 0;
172 }
173 if (astr->entry == NULL) {
174 return 1;
175 }
176 if (bstr->entry == NULL) {
177 return -1;
178 }
179 return g_strcmp0(astr->entry, bstr->entry);
180}
181
185static RunEntry *get_apps_external(RunEntry *retv, unsigned int *length,
186 unsigned int num_favorites) {
188 if (fd >= 0) {
189 FILE *inp = fdopen(fd, "r");
190 if (inp) {
191 char *buffer = NULL;
192 size_t buffer_length = 0;
193 ssize_t l = 0;
194 while ((l = getline(&buffer, &buffer_length, inp)) > 0) {
195 int found = 0;
196 // Filter out line-end.
197 if (buffer[l - 1] == '\n') {
198 buffer[l - 1] = '\0';
199 }
200
201 // This is a nice little penalty, but doable? time will tell.
202 // given num_favorites is max 25.
203 for (unsigned int j = 0; found == 0 && j < num_favorites; j++) {
204 if (strcasecmp(buffer, retv[j].entry) == 0) {
205 found = 1;
206 }
207 }
208
209 if (found == 1) {
210 continue;
211 }
212
213 // No duplicate, add it.
214 retv = g_realloc(retv, ((*length) + 2) * sizeof(RunEntry));
215 retv[(*length)].entry = g_strdup(buffer);
216 retv[(*length)].exec = g_shell_quote(buffer);
217 retv[(*length)].from_history = FALSE;
218 retv[(*length)].icon = NULL;
219 retv[(*length)].icon_fetch_uid = 0;
220 retv[(*length)].icon_fetch_size = 0;
221 retv[(*length)].icon_fetch_scale = 0;
222
223 (*length)++;
224 }
225 if (buffer != NULL) {
226 free(buffer);
227 }
228 if (fclose(inp) != 0) {
229 g_warning("Failed to close stdout off executor script: '%s'",
230 g_strerror(errno));
231 }
232 }
233 }
234 retv[(*length)].entry = NULL;
235 retv[(*length)].exec = NULL;
236 retv[(*length)].from_history = FALSE;
237 retv[(*length)].icon = NULL;
238 retv[(*length)].icon_fetch_uid = 0;
239 retv[(*length)].icon_fetch_size = 0;
240 retv[(*length)].icon_fetch_scale = 0;
241 return retv;
242}
243
247static RunEntry *get_apps(unsigned int *length) {
248 GError *error = NULL;
249 RunEntry *retv = NULL;
250 unsigned int num_favorites = 0;
251 char *path;
252
253 if (g_getenv("PATH") == NULL) {
254 return NULL;
255 }
256 TICK_N("start");
257 path = g_build_filename(cache_dir, RUN_CACHE_FILE, NULL);
258 char **hretv = history_get_list(path, length);
259 retv = (RunEntry *)g_malloc0((*length + 1) * sizeof(RunEntry));
260 for (unsigned int i = 0; i < *length; i++) {
261 gchar **rs = g_strsplit(hretv[i], "\x1f", 2);
262 retv[i].entry = rs[0];
263 retv[i].exec = rs[1];
264 if (retv[i].exec == NULL) {
265 retv[i].exec = g_strdup(rs[0]);
266 }
267 retv[i].from_history = TRUE;
268 g_free(rs);
269 }
270 g_free(hretv);
271 g_free(path);
272 // Keep track of how many where loaded as favorite.
273 num_favorites = (*length);
274
275 path = g_strdup(g_getenv("PATH"));
276
277 gsize l = 0;
278 gchar *homedir = g_locale_to_utf8(g_get_home_dir(), -1, NULL, &l, &error);
279 if (error != NULL) {
280 g_debug("Failed to convert homedir to UTF-8: %s", error->message);
281 for (unsigned int i = 0; retv[i].entry != NULL; i++) {
282 g_free(retv[i].entry);
283 g_free(retv[i].exec);
284 }
285 g_free(retv);
286 g_clear_error(&error);
287 g_free(homedir);
288 return NULL;
289 }
290
291 const char *const sep = ":";
292 char *strtok_savepointer = NULL;
293 for (const char *dirname = strtok_r(path, sep, &strtok_savepointer);
294 dirname != NULL; dirname = strtok_r(NULL, sep, &strtok_savepointer)) {
295 char *fpath = rofi_expand_path(dirname);
296 DIR *dir = opendir(fpath);
297 g_debug("Checking path %s for executable.", fpath);
298 g_free(fpath);
299
300 if (dir != NULL) {
301 struct dirent *dent;
302 gsize dirn_len = 0;
303 gchar *dirn = g_locale_to_utf8(dirname, -1, NULL, &dirn_len, &error);
304 if (error != NULL) {
305 g_debug("Failed to convert directory name to UTF-8: %s",
306 error->message);
307 g_clear_error(&error);
308 closedir(dir);
309 continue;
310 }
311 gboolean is_homedir = g_str_has_prefix(dirn, homedir);
312 g_free(dirn);
313
314 while ((dent = readdir(dir)) != NULL) {
315 if (dent->d_type != DT_REG && dent->d_type != DT_LNK &&
316 dent->d_type != DT_UNKNOWN) {
317 continue;
318 }
319 // Skip dot files.
320 if (dent->d_name[0] == '.') {
321 continue;
322 }
323 if (is_homedir) {
324 gchar *full_path = g_build_filename(dirname, dent->d_name, NULL);
325 gboolean b = g_file_test(full_path, G_FILE_TEST_IS_EXECUTABLE);
326 g_free(full_path);
327 if (!b) {
328 continue;
329 }
330 }
331
332 gsize name_len;
333 gchar *name =
334 g_filename_to_utf8(dent->d_name, -1, NULL, &name_len, &error);
335 if (error != NULL) {
336 g_debug("Failed to convert filename to UTF-8: %s", error->message);
337 g_clear_error(&error);
338 g_free(name);
339 continue;
340 }
341 // This is a nice little penalty, but doable? time will tell.
342 // given num_favorites is max 25.
343 int found = 0;
344 for (unsigned int j = 0; found == 0 && j < num_favorites; j++) {
345 if (g_strcmp0(name, retv[j].entry) == 0) {
346 found = 1;
347 }
348 }
349
350 if (found == 1) {
351 g_free(name);
352 continue;
353 }
354
355 retv = g_realloc(retv, ((*length) + 2) * sizeof(RunEntry));
356 retv[(*length)].entry = name;
357 retv[(*length)].exec = g_shell_quote(name);
358 retv[(*length)].from_history = FALSE;
359 retv[(*length)].icon = NULL;
360 retv[(*length)].icon_fetch_uid = 0;
361 retv[(*length)].icon_fetch_size = 0;
362 retv[(*length)].icon_fetch_scale = 0;
363 retv[(*length) + 1].entry = NULL;
364 retv[(*length) + 1].exec = NULL;
365 retv[(*length) + 1].from_history = FALSE;
366 retv[(*length) + 1].icon = NULL;
367 retv[(*length) + 1].icon_fetch_uid = 0;
368 retv[(*length) + 1].icon_fetch_size = 0;
369 retv[(*length) + 1].icon_fetch_scale = 0;
370 (*length)++;
371 }
372
373 closedir(dir);
374 }
375 }
376 g_free(homedir);
377
378 // Get external apps.
379 if (config.run_list_command != NULL && config.run_list_command[0] != '\0') {
380 retv = get_apps_external(retv, length, num_favorites);
381 }
382 // No sorting needed.
383 if ((*length) == 0) {
384 return retv;
385 }
386 // TODO: check this is still fast enough. (takes 1ms on laptop.)
387 if ((*length) > num_favorites) {
388 g_qsort_with_data(&(retv[num_favorites]), (*length) - num_favorites,
389 sizeof(RunEntry), sort_func, NULL);
390 }
391 g_free(path);
392
393 unsigned int removed = 0;
394 for (unsigned int index = num_favorites; index < ((*length) - 1); index++) {
395 if (g_strcmp0(retv[index].entry, retv[index + 1].entry) == 0) {
396 g_free(retv[index].entry);
397 retv[index].entry = NULL;
398 g_free(retv[index].exec);
399 retv[index].exec = NULL;
400 removed++;
401 }
402 }
403
404 if ((*length) > num_favorites) {
405 g_qsort_with_data(&(retv[num_favorites]), (*length) - num_favorites,
406 sizeof(RunEntry), sort_func, NULL);
407 }
408 // Reduce array length;
409 (*length) -= removed;
410
411 TICK_N("stop");
412 return retv;
413}
414
415static int run_mode_init(Mode *sw) {
416 if (sw->private_data == NULL) {
417 RunModePrivateData *pd = g_malloc0(sizeof(*pd));
418 sw->private_data = (void *)pd;
419 pd->cmd_list = get_apps(&(pd->cmd_list_length));
420 pd->completer = NULL;
421 }
422
423 return TRUE;
424}
425static void run_mode_destroy(Mode *sw) {
427 if (rmpd != NULL) {
428 for (unsigned int i = 0; i < rmpd->cmd_list_length; i++) {
429 g_free(rmpd->cmd_list[i].entry);
430 g_free(rmpd->cmd_list[i].exec);
431 if (rmpd->cmd_list[i].icon != NULL) {
432 cairo_surface_destroy(rmpd->cmd_list[i].icon);
433 }
434 }
435 g_free(rmpd->cmd_list);
436 g_free(rmpd->old_input);
437 g_free(rmpd->old_completer_input);
438 if (rmpd->completer != NULL) {
439 mode_destroy(rmpd->completer);
440 g_free(rmpd->completer);
441 }
442 g_free(rmpd);
443 sw->private_data = NULL;
444 }
445}
446
447static unsigned int run_mode_get_num_entries(const Mode *sw) {
448 const RunModePrivateData *rmpd = (const RunModePrivateData *)sw->private_data;
449 if (rmpd->file_complete) {
450 return rmpd->completer->_get_num_entries(rmpd->completer);
451 }
452 return rmpd->cmd_list_length;
453}
454
455static ModeMode run_mode_result(Mode *sw, int mretv, char **input,
456 unsigned int selected_line) {
458 ModeMode retv = MODE_EXIT;
459
460 gboolean run_in_term = ((mretv & MENU_CUSTOM_ACTION) == MENU_CUSTOM_ACTION);
461 if (rmpd->file_complete == TRUE) {
462
463 retv = RELOAD_DIALOG;
464
465 if ((mretv & (MENU_COMPLETE))) {
466 g_free(rmpd->old_completer_input);
467 rmpd->old_completer_input = *input;
468 *input = NULL;
469 if (rmpd->selected_line < rmpd->cmd_list_length) {
470 (*input) = g_strdup(rmpd->old_input);
471 }
472 rmpd->file_complete = FALSE;
473 } else if ((mretv & MENU_CANCEL)) {
474 retv = MODE_EXIT;
475 } else {
476 char *path = NULL;
477 retv = mode_completer_result(rmpd->completer, mretv, input, selected_line,
478 &path);
479 if (retv == MODE_EXIT) {
480 if (path == NULL) {
481 char *arg = rmpd->cmd_list[rmpd->selected_line].exec;
482 exec_cmd(arg, run_in_term, rmpd->cmd_list[rmpd->selected_line].entry);
483 } else {
484 char *earg = rmpd->cmd_list[rmpd->selected_line].exec;
485 char *epath = g_shell_quote(path);
486 char *arg = g_strdup_printf("%s %s", earg, epath);
487 exec_cmd(arg, run_in_term, arg);
488 g_free(arg);
489 g_free(epath);
490 }
491 }
492 g_free(path);
493 }
494 return retv;
495 }
496
497 if ((mretv & MENU_OK) && rmpd->cmd_list[selected_line].entry != NULL) {
498 char *earg = NULL;
499 earg = rmpd->cmd_list[selected_line].exec;
500 if (!exec_cmd(earg, run_in_term, rmpd->cmd_list[selected_line].entry)) {
501 retv = RELOAD_DIALOG;
502 }
503 } else if ((mretv & MENU_CUSTOM_INPUT) && *input != NULL &&
504 *input[0] != '\0') {
505 if (!exec_cmd(*input, run_in_term, *input)) {
506 retv = RELOAD_DIALOG;
507 }
508 } else if ((mretv & MENU_ENTRY_DELETE) &&
509 rmpd->cmd_list[selected_line].entry) {
510 delete_entry(&(rmpd->cmd_list[selected_line]));
511
512 // Clear the list.
513 retv = RELOAD_DIALOG;
515 run_mode_init(sw);
516 } else if (mretv & MENU_CUSTOM_COMMAND) {
517 retv = (mretv & MENU_LOWER_MASK);
518 } else if ((mretv & MENU_COMPLETE)) {
519 retv = RELOAD_DIALOG;
520 if (selected_line < rmpd->cmd_list_length) {
521 rmpd->selected_line = selected_line;
522
523 g_free(rmpd->old_input);
524 rmpd->old_input = g_strdup(*input);
525
526 if (*input)
527 g_free(*input);
528 *input = g_strdup(rmpd->old_completer_input);
529
530 const Mode *comp = rofi_get_completer();
531 if (comp) {
532 rmpd->completer = mode_create(comp);
533 mode_init(rmpd->completer);
534 rmpd->file_complete = TRUE;
535 }
536 }
537 }
538 return retv;
539}
540
541static char *_get_display_value(const Mode *sw, unsigned int selected_line,
542 G_GNUC_UNUSED int *state,
543 G_GNUC_UNUSED GList **list, int get_entry) {
544 const RunModePrivateData *rmpd = (const RunModePrivateData *)sw->private_data;
545 if (rmpd->file_complete) {
546 return rmpd->completer->_get_display_value(rmpd->completer, selected_line,
547 state, list, get_entry);
548 }
549 return get_entry ? g_strdup(rmpd->cmd_list[selected_line].entry) : NULL;
550}
551
552static int run_token_match(const Mode *sw, rofi_int_matcher **tokens,
553 unsigned int index) {
554 const RunModePrivateData *rmpd = (const RunModePrivateData *)sw->private_data;
555 if (rmpd->file_complete) {
556 return rmpd->completer->_token_match(rmpd->completer, tokens, index);
557 }
558 return helper_token_match(tokens, rmpd->cmd_list[index].entry);
559}
560static char *run_get_message(const Mode *sw) {
562 if (pd->file_complete) {
563 if (pd->selected_line < pd->cmd_list_length) {
564 char *msg = mode_get_message(pd->completer);
565 if (msg) {
566 char *retv =
567 g_strdup_printf("File complete for: %s\n%s",
568 pd->cmd_list[pd->selected_line].entry, msg);
569 g_free(msg);
570 return retv;
571 }
572 return g_strdup_printf("File complete for: %s",
573 pd->cmd_list[pd->selected_line].entry);
574 }
575 }
576 return NULL;
577}
578static cairo_surface_t *_get_icon(const Mode *sw, unsigned int selected_line,
579 unsigned int height) {
581 const guint scale = display_scale();
582 if (pd->file_complete) {
583 return pd->completer->_get_icon(pd->completer, selected_line, height);
584 }
585 g_return_val_if_fail(pd->cmd_list != NULL, NULL);
586 RunEntry *dr = &(pd->cmd_list[selected_line]);
587
588 if (dr->icon_fetch_uid > 0 && dr->icon_fetch_size == height &&
589 dr->icon_fetch_scale == scale) {
590 cairo_surface_t *icon = rofi_icon_fetcher_get(dr->icon_fetch_uid);
591 return icon;
592 }
594 char **str = g_strsplit(dr->entry, " ", 2);
595 if (str) {
596 dr->icon_fetch_uid = rofi_icon_fetcher_query(str[0], height);
597 dr->icon_fetch_size = height;
598 dr->icon_fetch_scale = scale;
599 g_strfreev(str);
600 cairo_surface_t *icon = rofi_icon_fetcher_get(dr->icon_fetch_uid);
601 return icon;
602 }
603 return NULL;
604}
605
606#include "mode-private.h"
607Mode run_mode = {.name = "run",
608 .cfg_name_key = "display-run",
609 ._init = run_mode_init,
610 ._get_num_entries = run_mode_get_num_entries,
611 ._result = run_mode_result,
612 ._destroy = run_mode_destroy,
613 ._token_match = run_token_match,
614 ._get_message = run_get_message,
615 ._get_display_value = _get_display_value,
616 ._get_icon = _get_icon,
617 ._get_completion = NULL,
618 ._preprocess_input = NULL,
619 .private_data = NULL,
620 .free = NULL,
621 .type = MODE_TYPE_SWITCHER};
622
guint display_scale(void)
Definition display.c:78
gboolean helper_execute_command(const char *wd, const char *cmd, gboolean run_in_term, RofiHelperExecuteContext *context)
Definition helper.c:1457
int execute_generator(const char *cmd)
Definition helper.c:562
char * rofi_expand_path(const char *input)
Definition helper.c:784
int helper_token_match(rofi_int_matcher *const *tokens, const char *input)
Definition helper.c:541
void history_set(const char *filename, const char *entry)
Definition history.c:181
void history_remove(const char *filename, const char *entry)
Definition history.c:263
char ** history_get_list(const char *filename, unsigned int *length)
Definition history.c:327
cairo_surface_t * rofi_icon_fetcher_get(const uint32_t uid)
uint32_t rofi_icon_fetcher_query(const char *name, const int size)
void mode_destroy(Mode *mode)
Definition mode.c:64
int mode_init(Mode *mode)
Definition mode.c:44
struct rofi_mode Mode
Definition mode.h:49
Mode * mode_create(const Mode *mode)
Definition mode.c:225
ModeMode mode_completer_result(Mode *mode, int menu_retv, char **input, unsigned int selected_line, char **path)
Definition mode.c:232
void * mode_get_private_data(const Mode *mode)
Definition mode.c:176
char * mode_get_message(const Mode *mode)
Definition mode.c:218
ModeMode
Definition mode.h:54
@ MENU_CUSTOM_COMMAND
Definition mode.h:84
@ MENU_COMPLETE
Definition mode.h:88
@ MENU_LOWER_MASK
Definition mode.h:92
@ MENU_CANCEL
Definition mode.h:74
@ MENU_ENTRY_DELETE
Definition mode.h:80
@ MENU_CUSTOM_ACTION
Definition mode.h:90
@ MENU_OK
Definition mode.h:72
@ MENU_CUSTOM_INPUT
Definition mode.h:78
@ MODE_EXIT
Definition mode.h:56
@ RELOAD_DIALOG
Definition mode.h:60
const Mode * rofi_get_completer(void)
Definition rofi.c:1414
const char * cache_dir
Definition rofi.c:86
static int run_token_match(const Mode *sw, rofi_int_matcher **tokens, unsigned int index)
Definition run.c:552
static RunEntry * get_apps(unsigned int *length)
Definition run.c:247
static gboolean exec_cmd(const char *cmd, int run_in_term, const char *orig)
Definition run.c:104
static int sort_func(const void *a, const void *b, G_GNUC_UNUSED void *data)
Definition run.c:166
static char * run_get_message(const Mode *sw)
Definition run.c:560
static cairo_surface_t * _get_icon(const Mode *sw, unsigned int selected_line, unsigned int height)
Definition run.c:578
static RunEntry * get_apps_external(RunEntry *retv, unsigned int *length, unsigned int num_favorites)
Definition run.c:185
static void run_mode_destroy(Mode *sw)
Definition run.c:425
static unsigned int run_mode_get_num_entries(const Mode *sw)
Definition run.c:447
#define RUN_CACHE_FILE
Definition run.c:64
static ModeMode run_mode_result(Mode *sw, int mretv, char **input, unsigned int selected_line)
Definition run.c:455
static void delete_entry(const RunEntry *cmd)
Definition run.c:147
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)
Definition run.c:541
Mode run_mode
Definition run.c:607
static int run_mode_init(Mode *sw)
Definition run.c:415
#define TICK_N(a)
Definition timings.h:69
struct _icon icon
Definition icon.h:44
@ MODE_TYPE_SWITCHER
struct rofi_int_matcher_t rofi_int_matcher
Settings config
Definition run.c:66
uint32_t icon_fetch_size
Definition run.c:70
char * exec
Definition run.c:68
gboolean from_history
Definition run.c:72
char * entry
Definition run.c:67
uint32_t icon_fetch_uid
Definition run.c:69
cairo_surface_t * icon
Definition run.c:74
guint icon_fetch_scale
Definition run.c:71
unsigned int cmd_list_length
Definition run.c:84
char * old_input
Definition run.c:89
uint32_t selected_line
Definition run.c:88
Mode * completer
Definition run.c:91
char * old_completer_input
Definition run.c:92
gboolean file_complete
Definition run.c:87
RunEntry * cmd_list
Definition run.c:82
char * run_list_command
Definition settings.h:96
__mode_get_num_entries _get_num_entries
_mode_token_match _token_match
_mode_get_display_value _get_display_value
_mode_get_icon _get_icon
void * private_data