From 24eb9f85df07efb0d57f06a255ac6673bf93d8a7 Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Sat, 10 May 2003 15:12:27 +0000 Subject: Turn off timed_menu by default --- plugins/menu/timed_menu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/menu/timed_menu.c b/plugins/menu/timed_menu.c index 34d71e73..68bf57b1 100644 --- a/plugins/menu/timed_menu.c +++ b/plugins/menu/timed_menu.c @@ -41,7 +41,8 @@ void timed_menu_timeout_handler(void *data) { /* if the menu is not shown, run a process and use its output as menu */ - char *args[] = {"/bin/sh", "-c", "ls", NULL}; + char *args[] = {"/bin/sh", "-c", TIMED_MENU_DATA(data)->command, + NULL}; GIOChannel *io; char *line; gint child, c_stdout, line_len, terminator_pos; @@ -93,6 +94,7 @@ void *plugin_create() d->type = TIMED_MENU_PIPE; d->timer = timer_start(1000000, &timed_menu_timeout_handler, m); + d->command = "ls"; m->plugin_data = (void *)d; -- cgit v1.2.3