1 #include "openbox/actions.h"
2 #include "openbox/openbox.h"
8 static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node);
9 static void free_func(gpointer options);
10 static gboolean run_func(ObActionsData *data, gpointer options);
12 void action_restart_startup(void)
14 actions_register("Restart",
21 static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
26 o = g_new0(Options, 1);
28 if ((n = parse_find_node("command", node)) ||
29 (n = parse_find_node("execute", node)))
31 gchar *s = parse_string(doc, n);
32 o->cmd = parse_expand_tilde(s);
38 static void free_func(gpointer options)
48 /* Always return FALSE because its not interactive */
49 static gboolean run_func(ObActionsData *data, gpointer options)
53 ob_restart_other(o->cmd);