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()
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("execute", node))) {
29 gchar *s = parse_string(doc, n);
30 o->cmd = parse_expand_tilde(s);
36 static void free_func(gpointer options)
46 /* Always return FALSE because its not interactive */
47 static gboolean run_func(ObActionsData *data, gpointer options)
51 ob_restart_other(o->cmd);