Accept <command> in addition to <execute> for the restart action.

This commit is contained in:
Mikael Magnusson 2007-07-31 18:33:57 +02:00 committed by Dana Jansens
parent 648e2b626f
commit 7c7bfd770d

View file

@ -25,7 +25,9 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
o = g_new0(Options, 1);
if ((n = parse_find_node("execute", node))) {
if ((n = parse_find_node("command", node)) ||
(n = parse_find_node("execute", node)))
{
gchar *s = parse_string(doc, n);
o->cmd = parse_expand_tilde(s);
g_free(s);